diff options
Diffstat (limited to 'dla.s')
-rw-r--r-- | dla.s | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -342,8 +342,18 @@ notredo: cmp #'S' ; Save beq saveimage cmp #'N' ; New - bne waitkey ; ignore any other keystroke + bne notnew jmp getargs +notnew: + cmp #'Q' ; Quit + bne waitkey ; ignore any other keystroke, get another + + jsr restore_gr0 ; need the GR.0 screen to show the quit prompt + lda #$7d ; clear screen + jsr printchr + jsr confirm_quit ; this doesn't return if the user says Y + jmp getargs ; if he said N, start over (same as New) + ;;; End of generate() ;;; Subroutine: saveimage @@ -797,10 +807,11 @@ retrymsg: ; printing to a 32-byte buffer (which we told the OS was the ; start of a GR.0 screen, but that was designated "a lie"). menumsg: - .byte " " + .byte " " .byte ' ','S'|$80,"ave" .byte ' ','R'|$80,"edo" - .byte ' ','N'|$80,"ew? " + .byte ' ','N'|$80,"ew" + .byte ' ','Q'|$80,"uit?" .byte 0 exit_prog_msg: |