1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 09:38:06 +11:00

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,
;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