440ea43a88
Initially, I used the same letters as those used in the z80 ref docs, but it makes the different assemblers harder to use than they should. Having consistent "argtype" rules across assemblers should help.
17 lines
281 B
Plaintext
17 lines
281 B
Plaintext
( Borrowed from http://wikiti.brandonw.net/ )
|
|
( Divides AC by DE and places the quotient in AC and the
|
|
remainder in HL )
|
|
CODE /MOD
|
|
DE POP,
|
|
BC POP,
|
|
chkPS,
|
|
A B LDrr,
|
|
B 16 LDri,
|
|
HL 0 LDdn,
|
|
|
|
|
|
|
|
|
|
|
|
( cont. )
|