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:
parent
60ecab314e
commit
ae719508d9
8
blk/823
8
blk/823
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user