mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Document !cc support alongside HIGH(r16) and LOW(r16) support (#1475)
This commit is contained in:
@@ -57,8 +57,6 @@ Execute if Z is not set.
|
||||
Execute if C is set.
|
||||
.It Sy NC
|
||||
Execute if C is not set.
|
||||
.It Sy ! cc
|
||||
Negates a condition code.
|
||||
.El
|
||||
.It Ar vec
|
||||
One of the
|
||||
|
||||
21
man/rgbasm.5
21
man/rgbasm.5
@@ -49,6 +49,7 @@ Multiple instructions on one line can be separated by double colons
|
||||
.Pp
|
||||
The available instructions are documented in
|
||||
.Xr gbz80 7 .
|
||||
.Pp
|
||||
Note that where an instruction requires an 8-bit register
|
||||
.Ar r8 ,
|
||||
.Nm
|
||||
@@ -56,14 +57,32 @@ can interpret
|
||||
.Ic HIGH Ns Pq Ar r16
|
||||
as the top 8-bit register of the given
|
||||
.Ar r16 ,
|
||||
for example,
|
||||
.Ic HIGH Ns Pq Ic HL
|
||||
for
|
||||
.Ic H ;
|
||||
and
|
||||
.Ic LOW Ns Pq Ar r16
|
||||
as the bottom one (except for
|
||||
as the bottom one, for example,
|
||||
.Ic LOW Ns Pq Ic HL
|
||||
for
|
||||
.Ic L
|
||||
(except for
|
||||
.Ic LOW Ns Pq Ic AF ,
|
||||
since
|
||||
.Ic F
|
||||
is not a valid register).
|
||||
.Pp
|
||||
Note also that where an instruction requires a condition code
|
||||
.Ar cc ,
|
||||
.Nm
|
||||
can interpret
|
||||
.Ic ! Ns Ar cc
|
||||
as the opposite condition code; for example,
|
||||
.Ic !nz
|
||||
for
|
||||
.Ic z .
|
||||
.Pp
|
||||
All reserved keywords (directives, register names, etc.) are case-insensitive;
|
||||
all identifiers (labels and other symbol names) are case-sensitive.
|
||||
.Pp
|
||||
|
||||
Reference in New Issue
Block a user