shave some bytes

This commit is contained in:
4am 2021-12-13 19:48:44 -05:00
parent e897d88c26
commit 0229973ba9
43 changed files with 55 additions and 56 deletions

View File

@ -29,11 +29,10 @@ loop2 txa
adc #$7C
sta <src+2
sta $C004
bmi src
bmi +
sta $C005
src lda $FD00, y ; SMC high byte
dst sta $FD00, y ; SMC high byte
next txa
+ jsr src
txa
lsr
tax
tya
@ -45,8 +44,8 @@ next txa
bmi exit
txa
bne loop1
exit lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
rts
src lda $FD00, y
dst sta $FD00, y
exit rts
}
end

View File

@ -90,8 +90,8 @@ dst sta $FD00, y ; write the result
bmi exit
txa
bne loop1
exit lda $4000 ; last lousy byte (because LFSR never hits 0)
sta $2000
exit lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
sta $C000 ; 80STORE mode off
rts

View File

@ -62,8 +62,8 @@ dst sta $FD00, y
bmi exit
txa
bne loop1
exit lda $4000 ; last lousy byte (because LFSR never hits 0)
sta $2000
exit lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
sta $C000 ; 80STORE mode off
rts
aux sta $C055 ; switch $2000 access to aux memory (read/write!)

View File

@ -63,8 +63,8 @@ dst sta $FD00, y ; write the result
bmi exit
txa
bne loop1
exit lda $4000 ; last lousy byte (because LFSR never hits 0)
sta $2000
exit lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
rts
}
end

View File

@ -65,8 +65,8 @@ dst sta $FD00, y ; write the result
bmi exit
txa
bne loop1
exit lda $4000 ; last lousy byte (because LFSR never hits 0)
sta $2000
exit lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
rts
}
end

View File

@ -106,8 +106,8 @@ shapemask = $8000 ; [$2000 bytes, page-aligned]
txa
bne --
jsr $1
lda $4000 ; last lousy byte (because LFSR never hits 0)
sta $2000
lda (src+1), y ; last lousy byte (because LFSR never hits 0)
sta (dst+1), y
lda #$2C ; BIT
sta <applyshapemask
jmp $1

View File

@ -53,8 +53,8 @@ src=*+1
bmi exit
txa
bne loop1
exit lda $2000 ; last lousy byte (because LFSR never hits 0)
sta $2000
exit lda (src), y ; last lousy byte (because LFSR never hits 0)
sta (src), y
rts
}
end

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10947878
!be24 10947866
!le16 4281

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10900664
!be24 10900652
!le16 5239

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10843523
!be24 10843511
!le16 3586

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10855893
!be24 10855881
!le16 3946

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10871292
!be24 10871280
!le16 4998

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10888944
!be24 10888932
!le16 5571

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10952159
!be24 10952147
!le16 410

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10952945
!be24 10952932
!le16 448

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10953393
!be24 10953380
!le16 303

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10908049
!be24 10908037
!le16 1242

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10952676
!le16 68
!be24 10952664
!le16 67

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10947819
!be24 10947807
!le16 59

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10946489
!be24 10946477
!le16 1249

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10932479
!be24 10932467
!le16 464

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10905903
!be24 10905891
!le16 2146

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10909522
!be24 10909510
!le16 6149

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10952569
!be24 10952557
!le16 107

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10947738
!be24 10947726
!le16 81

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10952744
!be24 10952731
!le16 201

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10932943
!be24 10932931
!le16 4407

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10937350
!be24 10937338
!le16 1533

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10938883
!be24 10938871
!le16 1040

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10939923
!be24 10939911
!le16 3237

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10943160
!be24 10943148
!le16 2764

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10945924
!be24 10945912
!le16 460

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10946384
!be24 10946372
!le16 105

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10953696
!be24 10953683
!le16 2370

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10920584
!be24 10920572
!le16 6149

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10894515
!be24 10894503
!le16 6149

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10835491
!be24 10835479
!le16 8032

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10847109
!be24 10847097
!le16 8784

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10859839
!be24 10859827
!le16 11453

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10876290
!be24 10876278
!le16 12654

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10909291
!be24 10909279
!le16 231

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10915671
!be24 10915659
!le16 4913

View File

@ -4,5 +4,5 @@
; This file is automatically generated
;
!byte 0
!be24 10926733
!be24 10926721
!le16 5746