mirror of
https://github.com/a2-4am/passport.git
synced 2025-01-10 09:29:44 +00:00
37 lines
992 B
Plaintext
37 lines
992 B
Plaintext
;-------------------------------
|
|
; Progress bar functions
|
|
;
|
|
; ResetProgress - called once when verify/demuffin/crack process starts
|
|
; IncProgress - called repeatedly during process (visibly increments progress bar)
|
|
; RestartProgress - called from certain patchers (Sierra) or when writing from RAM disk
|
|
; (visibly clears progress bar and exits via ResetProgress)
|
|
;-------------------------------
|
|
!zone {
|
|
RestartProgress
|
|
lda VPOS
|
|
pha
|
|
lda #1
|
|
sta VPOS
|
|
lda #s_progbar
|
|
jsr PrintByID
|
|
pla
|
|
sta VPOS
|
|
jsr $FC22
|
|
|
|
; note: execution falls through here
|
|
|
|
ResetProgress
|
|
lda #$82 ; reset progress indicator
|
|
sta progressind+1
|
|
lda #$05
|
|
sta progressind+2
|
|
rts
|
|
|
|
IncProgress
|
|
lda #$20 ; display minimal progress indicator
|
|
progressind
|
|
sta $FFFF ; set at runtime
|
|
inc progressind+1
|
|
rts
|
|
}
|