1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +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:
cuz 2004-06-07 21:40:51 +00:00
parent 3ac1a08baf
commit e3f63219a1

View File

@ -172,7 +172,7 @@ Here is a description of all the command line options:
<tag><tt>--forget-inc-paths</tt></tag>
Forget the builtin include paths. This is most useful when building
Forget the builtin include paths. This is most useful when building
customized C or runtime libraries, in which case the standard header
files should be ignored.
@ -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.