1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-01 08:29:37 +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:
cuz 2002-10-10 21:51:14 +00:00
parent e02d973316
commit 277e5ff77d

View File

@ -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 assembler. The syntax for a function declaration using fastcall is
<tscreen><verb> <tscreen><verb>
<tt/&lt;return type&gt; fastcall &lt;function name&gt; (&lt;parameter list&gt;)/ &lt;return type&gt; fastcall &lt;function name&gt; (&lt;parameter list&gt;)
</verb></tscreen> </verb></tscreen>
or or
<tscreen><verb> <tscreen><verb>
<tt/&lt;return type&gt; __fastcall__ &lt;function name&gt; (&lt;parameter list&gt;)/ &lt;return type&gt; __fastcall__ &lt;function name&gt; (&lt;parameter list&gt;)
</verb></tscreen> </verb></tscreen>
An example would be An example would be
<tscreen><verb> <tscreen><verb>
<tt/void __fastcall__ f (unsigned char c)/ void __fastcall__ f (unsigned char c)
</verb></tscreen> </verb></tscreen>
The first form of the fastcall keyword is in the user namespace and is The first form of the fastcall keyword is in the user namespace and is
therefore disabled in strict ANSI mode. 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 sequences of assembler code. For example, the macro
<tscreen><verb> <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> </verb></tscreen>
will give the high byte of any unsigned value. will give the high byte of any unsigned value.