From ae719508d9c22194cc7419a9d00d2550c6c1cea0 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sat, 20 Jun 2020 19:14:51 -0400 Subject: [PATCH] pcat: make /MOD division 16-bit Was required for the many "256 /MOD" in the code. --- blk/823 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blk/823 b/blk/823 index 4165ca9..7a043f0 100644 --- a/blk/823 +++ b/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