Size 665 bytes

This commit is contained in:
Michaelangel007 2017-07-20 11:01:17 -07:00
parent ce118c9079
commit 629866d97f
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
Optimized Linux Logo in 6502 assembly language for size. Optimized Linux Logo in 6502 assembly language for size.
Size: 667 ($29B) bytes Size: 665 ($299) bytes
# Screenshots # Screenshots

BIN
linuxlogo

Binary file not shown.

View File

@ -168,7 +168,7 @@ Unpack
NextSrcShift NextSrcShift
lda PackedBits+1,Y lda PackedBits+1,Y
sta zUnpackBits+1 sta zUnpackBits+1
ldx #0 ; zSrcShift ldx #8 ; zSrcShift, have 8 input bits?
UpdateSrcShift UpdateSrcShift
stx zSrcShift stx zSrcShift
@ -181,9 +181,8 @@ UpdateSrcShift
ror zUnpackBits+0 ; 00hhggff c=e eeddccbb ror zUnpackBits+0 ; 00hhggff c=e eeddccbb
ldx zSrcShift ldx zSrcShift
inx dex
inx dex
cpx #8 ; have 8 input bits?
bne UpdateSrcShift bne UpdateSrcShift
iny ; src++ iny ; src++
bne NextSrcShift ; always, since packed data length < 256 bne NextSrcShift ; always, since packed data length < 256

Binary file not shown.