mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Fixed some bad looking stuff
git-svn-id: svn://svn.cc65.org/cc65/trunk@1463 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
e02d973316
commit
277e5ff77d
@ -424,15 +424,15 @@ This cc65 version has some extensions to the ISO C standard.
|
||||
assembler. The syntax for a function declaration using fastcall is
|
||||
|
||||
<tscreen><verb>
|
||||
<tt/<return type> fastcall <function name> (<parameter list>)/
|
||||
<return type> fastcall <function name> (<parameter list>)
|
||||
</verb></tscreen>
|
||||
or
|
||||
<tscreen><verb>
|
||||
<tt/<return type> __fastcall__ <function name> (<parameter list>)/
|
||||
<return type> __fastcall__ <function name> (<parameter list>)
|
||||
</verb></tscreen>
|
||||
An example would be
|
||||
<tscreen><verb>
|
||||
<tt/void __fastcall__ f (unsigned char c)/
|
||||
void __fastcall__ f (unsigned char c)
|
||||
</verb></tscreen>
|
||||
The first form of the fastcall keyword is in the user namespace and is
|
||||
therefore disabled in strict ANSI mode.
|
||||
@ -452,7 +452,7 @@ 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("\ttxa\n\tldx\t#$00",__AX__)
|
||||
</verb></tscreen>
|
||||
|
||||
will give the high byte of any unsigned value.
|
||||
|
Loading…
Reference in New Issue
Block a user