pcat: make /MOD division 16-bit

Was required for the many "256 /MOD" in the code.
This commit is contained in:
Virgil Dupras 2020-06-20 19:14:51 -04:00
parent 60ecab314e
commit ae719508d9

View File

@ -6,8 +6,8 @@ CODE *
AX PUSHx, AX PUSHx,
;CODE ;CODE
CODE /MOD CODE /MOD
BX POPx, AX POPx, BX POPx, AX POPx, DX PUSHx, ( protect )
BL DIVr, ( TODO: use DIVx, risk of 8086 error ) DX DX XORxx, BX DIVx,
BH BH XORrr, BL AH MOVrr, BX PUSHx, ( modulo ) BX DX MOVxx, DX POPx, ( unprotect )
BL AL MOVrr, BX PUSHx, ( division ) BX PUSHx, ( modulo ) AX PUSHx, ( division )
;CODE ;CODE