pcat: make /MOD division 16-bit
Was required for the many "256 /MOD" in the code.
This commit is contained in:
parent
60ecab314e
commit
ae719508d9
8
blk/823
8
blk/823
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user