On Thu, Jul 29, 2004 at 08:48:47AM -0700, Shawn Jefferson wrote: > Is the following correct code to get that put into a > local variable called "ret" ? > > asm("jsr $C812"); > asm("ldy %o", ret); > asm("sta (sp),y"); Yes, that should be ok, provided that ret is an auto variable (one on the stack). Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Jul 29 18:10:52 2004
This archive was generated by hypermail 2.1.8 : 2004-07-29 18:11:01 CEST