Merge pull request #188 from greg-king5/docs

65816 assembler document fix.
This commit is contained in:
Oliver Schmidt
2015-07-29 14:48:38 +02:00

View File

@@ -3,10 +3,10 @@
<article> <article>
<title>ca65 Users Guide <title>ca65 Users Guide
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz"> <author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">
<date>2014-04-24 <date>2015-07-29
<abstract> <abstract>
ca65 is a powerful macro assembler for the 6502, 65C02 and 65816 CPUs. It is ca65 is a powerful macro assembler for the 6502, 65C02, and 65816 CPUs. It is
used as a companion assembler for the cc65 crosscompiler, but it may also be used as a companion assembler for the cc65 crosscompiler, but it may also be
used as a standalone product. used as a standalone product.
</abstract> </abstract>
@@ -430,12 +430,10 @@ The assembler accepts
<sect1>65816 mode<p> <sect1>65816 mode<p>
In 65816 mode several aliases are accepted in addition to the official In 65816 mode, several aliases are accepted, in addition to the official
mnemonics: mnemonics:
<tscreen><verb> <tscreen><verb>
BGE is an alias for BCS
BLT is an alias for BCC
CPA is an alias for CMP CPA is an alias for CMP
DEA is an alias for DEC A DEA is an alias for DEC A
INA is an alias for INC A INA is an alias for INC A
@@ -447,7 +445,6 @@ mnemonics:
</verb></tscreen> </verb></tscreen>
<sect1>6502X mode<label id="6502X-mode"><p> <sect1>6502X mode<label id="6502X-mode"><p>
6502X mode is an extension to the normal 6502 mode. In this mode, several 6502X mode is an extension to the normal 6502 mode. In this mode, several
@@ -3330,8 +3327,8 @@ Here's a list of all control commands and a description, what they do:
atari Defines the scrcode macro. atari Defines the scrcode macro.
cbm Defines the scrcode macro. cbm Defines the scrcode macro.
cpu Defines constants for the .CPU variable. cpu Defines constants for the .CPU variable.
generic Defines generic macros like add and sub. generic Defines generic macroes like add, sub, and blt.
longbranch Defines conditional long jump macros. longbranch Defines conditional long-jump macroes.
</verb></tscreen> </verb></tscreen>
Including a macro package twice, or including a macro package that Including a macro package twice, or including a macro package that
@@ -4317,48 +4314,47 @@ are:
<sect1><tt>.MACPACK generic</tt><p> <sect1><tt>.MACPACK generic</tt><p>
This macro package defines macros that are useful in almost any program. This macro package defines macroes that are useful in almost any program.
Currently defined macros are: Currently defined macroes are:
<tscreen><verb> <tscreen><verb>
.macro add Arg .macro add Arg ; add without carry
clc clc
adc Arg adc Arg
.endmacro .endmacro
.macro sub Arg .macro sub Arg ; subtract without borrow
sec sec
sbc Arg sbc Arg
.endmacro .endmacro
.macro bge Arg .macro bge Arg ; branch on greater-than or equal
bcs Arg bcs Arg
.endmacro .endmacro
.macro blt Arg .macro blt Arg ; branch on less-than
bcc Arg bcc Arg
.endmacro .endmacro
.macro bgt Arg .macro bgt Arg ; branch on greater-than
.local L .local L
beq L beq L
bcs Arg bcs Arg
L: L:
.endmacro .endmacro
.macro ble Arg .macro ble Arg ; branch on less-than or equal
beq Arg beq Arg
bcc Arg bcc Arg
.endmacro .endmacro
.macro bnz Arg .macro bnz Arg ; branch on not zero
bne Arg bne Arg
.endmacro .endmacro
.macro bze Arg .macro bze Arg ; branch on zero
beq Arg beq Arg
.endmacro .endmacro
</verb></tscreen> </verb></tscreen>