mirror of
https://github.com/cc65/cc65.git
synced 2025-08-07 15:25:31 +00:00
Fixed several typos, changed example code
git-svn-id: svn://svn.cc65.org/cc65/trunk@1074 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -826,7 +826,7 @@ Here's a list of all control commands and a description, what they do:
|
||||
Example:
|
||||
|
||||
<tscreen><verb>
|
||||
.include .concat ("myheader", ".", "inc)
|
||||
.include .concat ("myheader", ".", "inc")
|
||||
</verb></tscreen>
|
||||
|
||||
This is the same as the command
|
||||
@@ -1664,7 +1664,7 @@ Here's a list of all control commands and a description, what they do:
|
||||
(the macro name) and optionally by a comma separated list of identifiers
|
||||
that are macro parameters.
|
||||
|
||||
See section <ref id="macros" name="Macros">).
|
||||
See section <ref id="macros" name="Macros">.
|
||||
|
||||
|
||||
<sect1><tt>.MATCH</tt><label id=".MATCH"><p>
|
||||
@@ -1711,7 +1711,7 @@ Here's a list of all control commands and a description, what they do:
|
||||
.endif
|
||||
|
||||
cmp #$80 ; Bit 7 into carry
|
||||
lsr a ; Shit carry into bit 7
|
||||
lsr a ; Shift carry into bit 7
|
||||
|
||||
.endmacro
|
||||
</verb></tscreen>
|
||||
@@ -2418,11 +2418,8 @@ written more efficiently, like this:
|
||||
|
||||
<tscreen><verb>
|
||||
.macro inc16 addr
|
||||
clc
|
||||
lda addr
|
||||
adc #$01
|
||||
sta addr
|
||||
bcc Skip
|
||||
inc addr
|
||||
bne Skip
|
||||
inc addr+1
|
||||
Skip:
|
||||
.endmacro
|
||||
@@ -2437,11 +2434,8 @@ macro:
|
||||
<tscreen><verb>
|
||||
.macro inc16 addr
|
||||
.proc
|
||||
clc
|
||||
lda addr
|
||||
adc #$01
|
||||
sta addr
|
||||
bcc Skip
|
||||
inc addr
|
||||
bne Skip
|
||||
inc addr+1
|
||||
Skip:
|
||||
.endproc
|
||||
@@ -2474,7 +2468,7 @@ also solve the problem above by using <tt/.LOCAL/:
|
||||
|
||||
Starting with version 2.5 of the assembler, there is a second macro type
|
||||
available: C style macros using the <tt/.DEFINE/ directive. These macros are
|
||||
similar to the classic macro type speified above, but behaviour is sometimes
|
||||
similar to the classic macro type described above, but behaviour is sometimes
|
||||
different:
|
||||
|
||||
<itemize>
|
||||
@@ -2735,7 +2729,7 @@ hear from you. Feel free to contact me by email
|
||||
|
||||
<sect>Copyright<p>
|
||||
|
||||
ca65 (and all cc65 binutils) are (C) Copyright 1998-2000 Ullrich von
|
||||
ca65 (and all cc65 binutils) are (C) Copyright 1998-2001 Ullrich von
|
||||
Bassewitz. For usage of the binaries and/or sources the following
|
||||
conditions do apply:
|
||||
|
||||
|
Reference in New Issue
Block a user