Add picture of a Christmas tree.
This commit is contained in:
parent
3126b6d728
commit
e907759643
BIN
res/tree.bin
Normal file
BIN
res/tree.bin
Normal file
Binary file not shown.
44
src/main.asm
44
src/main.asm
@ -171,13 +171,53 @@ loading_feedback SUBROUTINE
|
||||
lda #$f2
|
||||
sta $325
|
||||
|
||||
; wait for SPACE
|
||||
.chrin:
|
||||
jsr $ffe4
|
||||
cmp #$20
|
||||
bne .chrin
|
||||
|
||||
jsr copytree
|
||||
|
||||
rts
|
||||
|
||||
; draws a Christmas tree shamelessly copied from another demo
|
||||
copytree SUBROUTINE
|
||||
lda #<tree_start
|
||||
sta srcPointer
|
||||
lda #>tree_start
|
||||
sta srcPointer + 1
|
||||
|
||||
lda #$00
|
||||
sta dstPointer
|
||||
lda #$1e
|
||||
sta dstPointer + 1
|
||||
|
||||
ldy #0
|
||||
.loop:
|
||||
lda (srcPointer),y
|
||||
sta (dstPointer),y
|
||||
|
||||
inc srcPointer
|
||||
bne .noinc1
|
||||
inc srcPointer + 1
|
||||
.noinc1:
|
||||
|
||||
inc dstPointer
|
||||
bne .noinc2
|
||||
inc dstPointer + 1
|
||||
.noinc2:
|
||||
|
||||
lda srcPointer
|
||||
cmp #<tree_end
|
||||
bne .loop
|
||||
lda srcPointer + 1
|
||||
cmp #>tree_end
|
||||
bne .loop
|
||||
|
||||
rts
|
||||
|
||||
|
||||
message:
|
||||
BYTE #$0d,#$0d,"PLEASE WAIT 20 SEC",#$0d,"I'M JUST",#$0d,"AN OLD COMPUTER",#$0d,#0
|
||||
start_button_message:
|
||||
@ -190,6 +230,10 @@ demo_end:
|
||||
DEMO_LEN SET demo_end - demo_start
|
||||
ECHO DEMO_LEN
|
||||
|
||||
tree_start:
|
||||
.incbin "res/tree.bin"
|
||||
tree_end:
|
||||
|
||||
. = $bff9
|
||||
jmp loading_feedback
|
||||
. = $bffc
|
||||
|
Loading…
Reference in New Issue
Block a user