mirror of
https://github.com/deater/tb1.git
synced 2024-06-14 19:29:35 +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 $cc93 ; Complement of checksum
|
||||||
.word $2958 ; Unsigned 16-bit sum of ROM
|
.word $336c ; Unsigned 16-bit sum of ROM
|
||||||
|
|
|
@ -268,18 +268,17 @@ opening_setup_video:
|
||||||
sta $4200 ;
|
sta $4200 ;
|
||||||
|
|
||||||
|
|
||||||
less:
|
opening_joypad_read:
|
||||||
|
|
||||||
joypad_read:
|
|
||||||
lda $4212 ; get joypad status
|
lda $4212 ; get joypad status
|
||||||
and #%00000001 ; if joy is not ready
|
and #%00000001 ; if joy is not ready
|
||||||
bne joypad_read ; wait
|
bne opening_joypad_read ; wait
|
||||||
|
|
||||||
lda $4219 ; read joypad (BYSTudlr)
|
lda $4219 ; read joypad (BYSTudlr)
|
||||||
|
|
||||||
and #%11110000 ; see if a button pressed
|
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
|
lda #$80
|
||||||
sta $2100 ; Turn off screen
|
sta $2100 ; Turn off screen
|
||||||
|
|
|
@ -41,7 +41,7 @@ start_program:
|
||||||
|
|
||||||
jsr display_opening
|
jsr display_opening
|
||||||
|
|
||||||
; jsr display_title
|
jsr display_title
|
||||||
|
|
||||||
jsr level_1
|
jsr level_1
|
||||||
|
|
||||||
|
|
|
@ -203,15 +203,24 @@ setup_video:
|
||||||
|
|
||||||
|
|
||||||
; lda #$81 ; Enable NMI (VBlank Interrupt) and joypads
|
; 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
|
and #%11110000 ; see if a button pressed
|
||||||
; stp?
|
|
||||||
|
|
||||||
bra overflowing
|
beq title_joypad_read
|
||||||
|
|
||||||
|
lda #$80
|
||||||
|
sta $2100 ; Turn off screen
|
||||||
|
|
||||||
|
rts
|
||||||
|
|
||||||
|
|
||||||
;============================================================================
|
;============================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user