Re: [cc65] Inline / Macro Assembly - basic questions

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-03-08 01:09:35


On Fri, Mar 07, 2003 at 04:40:14AM -0800, Greg Long wrote:
> Are labels not permitted in inline assembly for branching?

Labels are permitted.

> The exception to the above would be using a stack offset %o, but that
> would require some careful knowledge of where on the stack the variable
> is, or would supplying the variable name allow the compiler to figure
> that out?

You are answering your own question: The offset says where the variable is
located on the stack. Maybe you want to look at a few lines of compiler
generated assembler code to understand how local variables work.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-08 01:09:45 CET