shave some bytes

This commit is contained in:
4am 2021-12-13 15:51:08 -05:00
parent 139fc8fa3e
commit cde09f66a1
6 changed files with 10 additions and 15 deletions

View File

@ -10,7 +10,6 @@
sty $FE, x sty $FE, x
dex dex
bne - bne -
jmp loop jmp loop
start start
@ -22,23 +21,19 @@ loop1 eor #$05 ; LFSR form 0x0500 with period 2047
wait inx wait inx
bpl wait bpl wait
tax tax
loop2 tya loop2 txa
and #$78
cmp #$78
beq next
txa
ora #$04 ora #$04
sta <dst+2 sta <dst+2
txa txa
;C=0 clc
adc #$7C adc #$7C
sta <src+2 sta <src+2
bpl src
sta $C004 sta $C004
bmi src
sta $C005
src lda $FD00, y ; SMC high byte src lda $FD00, y ; SMC high byte
dst sta $FD00, y ; SMC high byte dst sta $FD00, y ; SMC high byte
next sta $C005 next txa
txa
lsr lsr
tax tax
tya tya

View File

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

View File

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

View File

@ -5,4 +5,4 @@
; ;
!byte 0 !byte 0
!be24 10952712 !be24 10952712
!le16 79 !le16 73

View File

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

View File

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