snes: re-add title screen back in

This commit is contained in:
Vince Weaver 2013-01-21 15:15:11 -05:00
parent b9dda3dbce
commit e0208e2ad1
4 changed files with 22 additions and 14 deletions

View File

@ -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

View File

@ -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
and #%00000001 ; if joy is not ready
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

View File

@ -41,7 +41,7 @@ start_program:
jsr display_opening
; jsr display_title
jsr display_title
jsr level_1

View File

@ -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
;============================================================================