dos33fsprogs/demos/lovebyte2024/dtv_1k/still.s

143 lines
1.6 KiB
ArmAsm
Raw Permalink Normal View History

2024-02-07 18:46:30 +00:00
; still...
still:
2024-02-08 04:18:00 +00:00
2024-02-07 18:46:30 +00:00
jsr HOME
bit SET_TEXT
2024-02-07 20:34:40 +00:00
lda #'*'|$80
sta COLOR
lda #39
sta H2
lda #0
tay
jsr HLINE
; x=0, Y=39 after?
sty H2
ldy #0
lda #46
jsr HLINE
; x=0, y=39 after
lda #46
sta V2
lda #0
tay
jsr VLINE
; x=0,y=0
lda #46
sta V2
lda #1
ldy #18
jsr VLINE
lda #46
sta V2
lda #1
ldy #39
jsr VLINE
2024-02-08 04:18:00 +00:00
.if 0
2024-02-07 22:02:21 +00:00
;==============
; set screen for wrap
2024-02-07 20:34:40 +00:00
lda #20
2024-02-07 22:02:21 +00:00
sta $20 ; left edge
2024-02-08 02:20:08 +00:00
sta $21 ; width
2024-02-07 20:34:40 +00:00
lda #2
2024-02-07 22:02:21 +00:00
sta $22 ; top edge
;==================
; draw opening
2024-02-07 20:34:40 +00:00
lda #<opening
sta INL
lda #>opening
sta INH
ldy #0
opening_loop:
lda (INL),Y
2024-02-08 02:20:08 +00:00
beq play_music
2024-02-07 20:34:40 +00:00
ora #$80
jsr COUT1
iny
bne opening_loop ; bra
2024-02-08 04:18:00 +00:00
.endif
2024-02-07 22:02:21 +00:00
;===========================
; play music and draw loop
2024-02-08 02:20:08 +00:00
play_music:
;==========================
; set screen for wrap again
lda #1
sta $20 ; left edge
lda #15 ; width
sta $21
lda #2
sta $22 ; top edge
lda #18
sta $23
lda #2
sta CH
jsr TABV
;==================
; load song
;==================
lda #<music_data
sta MADDRL
2024-02-07 22:02:21 +00:00
lda #>music_data
sta MADDRH
2024-02-07 22:02:21 +00:00
2024-02-08 04:18:00 +00:00
; jsr play_ed
2024-02-07 22:02:21 +00:00
2024-02-08 04:18:00 +00:00
.include "duet.s"
; we crash!
;done_music:
; jmp done_music
2024-02-07 22:02:21 +00:00
display_lyrics_ed:
2024-02-08 02:20:08 +00:00
lda #'@'|$80
jsr COUT1
lda #'@'|$80
jsr COUT1
lda #'@'|$80
jsr COUT1
lda #' '|$80
jsr COUT1
rts
2024-02-08 02:20:08 +00:00
2024-02-08 04:18:00 +00:00
.if 0
2024-02-07 20:34:40 +00:00
opening:
.byte 13
.byte " ,:/;=",13
.byte " ,X M@@M HM@/",13
.byte " @@M MX. XXXH@@#/",13
.byte " @@@X. . ;",13
.byte "@ M/ +M@M",13
.byte "@@M . H @@",13
.byte "/MMMH. MM =",13
.byte " . . -H @@M ",13
.byte " =MMM@MH +M@+ MX",13
.byte " ,++ .MMMM= ",0
2024-02-08 04:18:00 +00:00
.endif
2024-02-07 20:34:40 +00:00
2024-02-07 22:02:21 +00:00
2024-02-08 04:18:00 +00:00
;.include "duet.s"
2024-02-07 22:02:21 +00:00
music_data:
2024-02-08 04:18:00 +00:00
.incbin "SA.ED",$0,$100
2024-02-07 22:02:21 +00:00