From 8d8f50a509b24fa00397921e12dcabe078a7fba5 Mon Sep 17 00:00:00 2001 From: Emmanuel Marty Date: Thu, 27 Jun 2019 18:32:49 +0200 Subject: [PATCH] Don't use 80186 opcodes. Issue #3 --- asm/8088/decompress_small_v2.S | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/asm/8088/decompress_small_v2.S b/asm/8088/decompress_small_v2.S index 03d883b..dcfc005 100755 --- a/asm/8088/decompress_small_v2.S +++ b/asm/8088/decompress_small_v2.S @@ -75,7 +75,8 @@ lzsa2_decompress: xchg ax,cx ; clear ah - cx is zero from the rep movsb above mov al,020H ; shift Z (offset bit 4) in place and al,dl - shl al,2 + shl al,1 + shl al,1 call .get_nibble ; get nibble for offset bits 0-3 or al,cl ; merge nibble rol al,1 @@ -100,7 +101,8 @@ lzsa2_decompress: mov ah,020H ; shift Z (offset bit 12) in place and ah,dl - shl ah,2 + shl ah,1 + shl ah,1 call .get_nibble ; get nibble for offset bits 8-11 or ah,cl ; merge nibble rol ah,1