mirror of
https://github.com/deater/tb1.git
synced 2024-12-22 13:29:48 +00:00
snes: re-add title screen back in
This commit is contained in:
parent
b9dda3dbce
commit
e0208e2ad1
@ -1,2 +1,2 @@
|
||||
.word $d6a7 ; Complement of checksum
|
||||
.word $2958 ; Unsigned 16-bit sum of ROM
|
||||
.word $cc93 ; Complement of checksum
|
||||
.word $336c ; Unsigned 16-bit sum of ROM
|
||||
|
@ -268,18 +268,17 @@ opening_setup_video:
|
||||
sta $4200 ;
|
||||
|
||||
|
||||
less:
|
||||
|
||||
joypad_read:
|
||||
opening_joypad_read:
|
||||
lda $4212 ; get joypad status
|
||||
and #%00000001 ; if joy is not ready
|
||||
bne joypad_read ; wait
|
||||
bne opening_joypad_read ; wait
|
||||
|
||||
lda $4219 ; read joypad (BYSTudlr)
|
||||
|
||||
and #%11110000 ; see if a button pressed
|
||||
|
||||
beq less ; if so, skip and don't move ball
|
||||
beq opening_joypad_read
|
||||
; if so, skip and don't move ball
|
||||
|
||||
lda #$80
|
||||
sta $2100 ; Turn off screen
|
||||
|
@ -41,7 +41,7 @@ start_program:
|
||||
|
||||
jsr display_opening
|
||||
|
||||
; jsr display_title
|
||||
jsr display_title
|
||||
|
||||
jsr level_1
|
||||
|
||||
|
@ -203,15 +203,24 @@ setup_video:
|
||||
|
||||
|
||||
; lda #$81 ; Enable NMI (VBlank Interrupt) and joypads
|
||||
; sta $4200 ;
|
||||
lda #$01 ; Enable joypad
|
||||
sta $4200 ;
|
||||
|
||||
title_joypad_read:
|
||||
lda $4212 ; get joypad status
|
||||
and #%00000001 ; if joy is not ready
|
||||
bne title_joypad_read ; wait
|
||||
|
||||
overflowing:
|
||||
lda $4219 ; read joypad (BYSTudlr)
|
||||
|
||||
; repeat forever
|
||||
; stp?
|
||||
and #%11110000 ; see if a button pressed
|
||||
|
||||
bra overflowing
|
||||
beq title_joypad_read
|
||||
|
||||
lda #$80
|
||||
sta $2100 ; Turn off screen
|
||||
|
||||
rts
|
||||
|
||||
|
||||
;============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user