Remove unnecessary "TSTB" instruction from 6809 LZSA depackers

This commit is contained in:
Doug Masten 2020-06-20 12:11:35 -05:00
parent 8c99570b06
commit f233d552ca
2 changed files with 2 additions and 6 deletions

View File

@ -60,9 +60,7 @@ lz1cpylt lda ,u+ ; copy literal byte
tfr u,x
lz1nolt ldb ,s ; get token again, don't pop it from the stack
tstb ; test O bit (small or large offset)
bmi lz1bigof
bmi lz1bigof ; test O bit (small or large offset)
ldb ,x+ ; O clear: load 8 bit (negative, signed) offset
lda #$ff ; set high 8 bits

View File

@ -62,9 +62,7 @@ lz1cpylt lda ,-u ; copy literal byte
tfr u,x
lz1nolt ldb ,s ; get token again, don't pop it from the stack
tstb ; test O bit (small or large offset)
bmi lz1bigof
bmi lz1bigof ; test O bit (small or large offset)
ldb ,-x ; O clear: load 8 bit (negative, signed) offset
lda #$ff ; set high 8 bits