From 9a270c2db2c8af8b15ba70ca810a92a3c93c87fa Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 2 Oct 2026 09:48:22 -0500 Subject: Allow quitting the password generator if the user doesn't want to continue --- assembly/win95/win95.S | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'assembly/win95') diff --git a/assembly/win95/win95.S b/assembly/win95/win95.S index d547c11..9bdfa36 100644 --- a/assembly/win95/win95.S +++ b/assembly/win95/win95.S @@ -287,6 +287,12 @@ li a7,11 li a0,'\n' ecall +# Check if the first character was a 'q', quit (return to menu) if so +la t0,inputbuf +lb t0,0(t0) +li t1,'q' +beq t0,t1,_start + # Check if all characters are digits la t0,inputbuf li t1,5 @@ -415,7 +421,7 @@ ecall j upgradepassword_restart menumsg: .asciz "1: Retail Key\n2: OEM Key\n3: Office 97 Key\n4: Upgrade Password\n\nEnter your choice:" -keypromptmsg: .asciz "Enter key: " +keypromptmsg: .asciz "Enter key\n(q to quit): " passwordheadermsg: .asciz "Password: " inputerrormsg: .asciz "Invalid entry\n\n" anykeymsg: .asciz "\n\nPress any key..." -- cgit v1.2.3