From 9f730b984c58d76733e79d53ff653232c158f0d8 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 15 Nov 2022 01:02:38 -0500 Subject: dla.xex: add Quit to Save/Redo/New menu. --- dla.s | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'dla.s') diff --git a/dla.s b/dla.s index 6cea1b7..aa5b83d 100644 --- a/dla.s +++ b/dla.s @@ -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: -- cgit v1.2.3