Skip to content

Commit

Permalink
Document !cc support alongside HIGH(r16) and LOW(r16) support (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 authored Aug 19, 2024
1 parent 356367b commit 57f122a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 0 additions & 2 deletions man/gbz80.7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 20 additions & 1 deletion man/rgbasm.5
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,40 @@ 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
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
Expand Down

0 comments on commit 57f122a

Please sign in to comment.