Z88 Developers' Notes | ||
---|---|---|
Contents | Contents of System Calls |
GN_D16, 16bit unsigned division
RST 20H, DEFW $7409
IN:
HL = dividend DE = divisorOUT, if call successful:
Fc = 0 HL = quotient DE = remainderOUT, if call failed:
Fc = 1 A = error code: RC_FAIL ($16), division by zero attemptedRegisters changed after return:
..BC..../IXIY same AF..DEHL/.... differentNotes:
Bugs:
Related calls:
GN_Gdn, convert an ASCII string to a binary number
GN_M16, 16bit unsigned multiplication
GN_D24, 24bit unsigned division
GN_M24, 24bit unsigned multiplication
GN_Pdn, write number as decimal ASCII string