Add autoplay setting to dip switch menu.

This commit is contained in:
Jennifer Taylor 2022-04-02 00:26:06 +00:00
parent 0a5c49578b
commit 00e7aa55b0
1 changed files with 32 additions and 0 deletions

View File

@ -32,3 +32,35 @@ CheckAutoplayDipswitchEnd:
; Default is 16 which will result in a mix of perfect and marvelous judgements
; 2 may possibly be a bit tight on real hardware, but MAX 300 is a pain and you get 1 or 2 goods at the end with a value of 4
slti v0, s2, AUTOPLAY_TIMING
.org 0x80012a24
; Display "AUTOPLAY" as DIP1 setting on the DIP switch test menu.
.asciiz "SW1 AUTOPLAY"
.org 0x80012d2c
OffText:
.org 0x80012d3c
OnText:
.org 0x80039bc8
j ComputeAutoplayOnOff
nop
ComputeAutoplayFinished:
.org 0x80012b8c
; Display "ON" or "OFF" depending on whether autoplay is on or off, on the DIP switch test menu.
ComputeAutoplayOnOff:
andi v0, s3, 0x1
beq v0, zero, _ComputeDisplayOn
nop
li v0, OffText
jal draw_text
sw v0, 0x14(sp)
j ComputeAutoplayFinished
nop
_ComputeDisplayOn:
li v0, OnText
jal draw_text
sw v0, 0x14(sp)
j ComputeAutoplayFinished
nop