diff --git a/README.md b/README.md index 46d1140..414d5d3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Linux Logo in 6502 assembly language. -Size: 703 ($2BF) bytes +Size: 701 ($2BD) bytes Features: @@ -40,6 +40,7 @@ __@@____@@_AA@_@_@@_____@@__@@@___@@@____@@___@@___BBBBBB@_____@BBBBBB ``` See: [ascii2hgr2bit](ascii2hgr2bit.c) for packing ASCII to 2 bits/char. +NOTE: PackedLen isn't needed if full 40 bytes HGR width is unpacked to. Inspired from non-optimized version. Size: 1,573 ($625) bytes * https://github.com/deater/linux_logo diff --git a/linuxlogo.s b/linuxlogo.s index dd62909..2291d75 100644 --- a/linuxlogo.s +++ b/linuxlogo.s @@ -91,6 +91,7 @@ apple_ii_normal set_apple_ii sta ModType ; erase last 'e' in 'Apple IIe' + lda #" " ; $A0 sta CpuType ; '_6502' lda #"6" sta CpuType+1 @@ -187,8 +188,7 @@ CheckFetch cmp #8 ; have 8 input bits? bne GetBit iny ; src++ - cpy PackedLen - bcc NextSrcShift ; C=0 -> STZ zSrcShift + bne NextSrcShift UnpackDone diff --git a/ll_6502.dsk b/ll_6502.dsk index dc93c27..20ca394 100644 Binary files a/ll_6502.dsk and b/ll_6502.dsk differ diff --git a/packedlogo.s b/packedlogo.s index d1db15c..9452936 100644 --- a/packedlogo.s +++ b/packedlogo.s @@ -1,5 +1,5 @@ -PackedLen - dfb $D2 +;PackedLen +; dfb $D2 PackedBits ; 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 byte ; 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 8 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 264 px