passport/src/progress.a

37 lines
992 B
Plaintext
Raw Normal View History

;-------------------------------
; 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
}