Document !cc support alongside HIGH(r16) and LOW(r16) support (#1475)

This commit is contained in:
Sylvie
2024-08-19 12:56:16 -04:00
committed by GitHub
parent 356367bfd3
commit 57f122a04e
2 changed files with 20 additions and 3 deletions

View File

@@ -57,8 +57,6 @@ Execute if Z is not set.
Execute if C is set. Execute if C is set.
.It Sy NC .It Sy NC
Execute if C is not set. Execute if C is not set.
.It Sy ! cc
Negates a condition code.
.El .El
.It Ar vec .It Ar vec
One of the One of the

View File

@@ -49,6 +49,7 @@ Multiple instructions on one line can be separated by double colons
.Pp .Pp
The available instructions are documented in The available instructions are documented in
.Xr gbz80 7 . .Xr gbz80 7 .
.Pp
Note that where an instruction requires an 8-bit register Note that where an instruction requires an 8-bit register
.Ar r8 , .Ar r8 ,
.Nm .Nm
@@ -56,14 +57,32 @@ can interpret
.Ic HIGH Ns Pq Ar r16 .Ic HIGH Ns Pq Ar r16
as the top 8-bit register of the given as the top 8-bit register of the given
.Ar r16 , .Ar r16 ,
for example,
.Ic HIGH Ns Pq Ic HL
for
.Ic H ;
and and
.Ic LOW Ns Pq Ar r16 .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 , .Ic LOW Ns Pq Ic AF ,
since since
.Ic F .Ic F
is not a valid register). is not a valid register).
.Pp .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 reserved keywords (directives, register names, etc.) are case-insensitive;
all identifiers (labels and other symbol names) are case-sensitive. all identifiers (labels and other symbol names) are case-sensitive.
.Pp .Pp