Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: *ARGH*

2008-02-28 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, Tom <tjkeller1@...> wrote:
> How do I access said vars from assembly language in
> the same program image?

If you're referring to inline assembly language, the recipe you're 
seeking is in the Inline Assembler Cookbook:
http://www.nongnu.org/avr-libc/user-manual/inline_asm.html

Alternately, if you're asking how to reference a variable from a pure 
assembly language file (a .S file), just refer to the variable name 
and, assuming it's public, the linker will resolve it.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.