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
1 changed files with 4 additions and 4 deletions

View File

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