From f233d552ca799b74018969bdcc5fe1e95467dde3 Mon Sep 17 00:00:00 2001 From: Doug Masten Date: Sat, 20 Jun 2020 12:11:35 -0500 Subject: [PATCH] Remove unnecessary "TSTB" instruction from 6809 LZSA depackers --- asm/6809/unlzsa1.s | 4 +--- asm/6809/unlzsa1b.s | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/asm/6809/unlzsa1.s b/asm/6809/unlzsa1.s index ec49aef..b23b8a0 100644 --- a/asm/6809/unlzsa1.s +++ b/asm/6809/unlzsa1.s @@ -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 diff --git a/asm/6809/unlzsa1b.s b/asm/6809/unlzsa1b.s index f658872..6b97d92 100644 --- a/asm/6809/unlzsa1b.s +++ b/asm/6809/unlzsa1b.s @@ -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