Don't use 80186 opcodes. Issue #3

This commit is contained in:
Emmanuel Marty 2019-06-27 18:32:49 +02:00 committed by GitHub
parent 3c8c4283c7
commit 8d8f50a509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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