Re: [cc65]Asm in CC65

Date view Thread view Subject view

From: troy silvey (tbsilvey_at_juno.com)
Date: 2001-01-09 04:44:01


>You have to use backslashes, not forward slashes. "\t" is a tab, "/t" 
>is the string "/t", so the assembler gets an invalid line and complains.

Well that was a stupid mistake. I should know better. thanks

>> #define hi(x) (__AX__=(x),asm("\ttxa\n\tldx\t#$00",__AX__)
>
>The first one loads the macro argument into the A and X registers, so 
>it may be used by the following assembler code, the last one tells the 
>compiler that the statement has a value and that this value is again in
the A and X
>registers.

Ok, I had to read it 8 times, but I get it now :)

troy

________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
----------------------------------------------------------------------
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 : 2001-12-14 22:05:38 CET