mirror of
https://github.com/cc65/cc65.git
synced 2024-09-30 08:57:49 +00:00
Fixed a typo and changed example to use new asm syntax
git-svn-id: svn://svn.cc65.org/cc65/trunk@3112 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3ac1a08baf
commit
e3f63219a1
@ -497,7 +497,11 @@ This cc65 version has some extensions to the ISO C standard.
|
||||
sequences of assembler code. For example, the macro
|
||||
|
||||
<tscreen><verb>
|
||||
#define hi(x) (__AX__=(x),asm("\ttxa\n\tldx\t#$00",__AX__)
|
||||
#define hi(x) \
|
||||
(__AX__ = (x), \
|
||||
asm ("txa"), \
|
||||
asm ("ldx #$00"), \
|
||||
__AX__)
|
||||
</verb></tscreen>
|
||||
|
||||
will give the high byte of any unsigned value.
|
||||
|
Loading…
Reference in New Issue
Block a user