(as) Z80 Opcodes
Info Catalog
(as) Z80 Directives
(as) Z80-Dependent
9.36.5 Opcodes
--------------
In line with common practice, Z80 mnemonics are used for both the Z80
and the R800.
In many instructions it is possible to use one of the half index
registers (`ixl',`ixh',`iyl',`iyh') in stead of an 8-bit general
purpose register. This yields instructions that are documented on the
R800 and undocumented on the Z80. Similarly `in f,(c)' is documented
on the R800 and undocumented on the Z80.
The assembler also supports the following undocumented
Z80-instructions, that have not been adopted in the R800 instruction
set:
`out (c),0'
Sends zero to the port pointed to by register c.
`sli M'
Equivalent to `M = (M<<1)+1', the operand M can be any operand
that is valid for `sla'. One can use `sll' as a synonym for `sli'.
`OP (ix+D), R'
This is equivalent to
ld R, (ix+D)
OPC R
ld (ix+D), R
The operation `OPC' may be any of `res B,', `set B,', `rl', `rlc',
`rr', `rrc', `sla', `sli', `sra' and `srl', and the register `R'
may be any of `a', `b', `c', `d', `e', `h' and `l'.
`OPC (iy+D), R'
As above, but with `iy' instead of `ix'.
The web site at `http://www.z80.info' is a good starting place to
find more information on programming the Z80.
Info Catalog
(as) Z80 Directives
(as) Z80-Dependent
automatically generated by
info2html