summaryrefslogtreecommitdiff
path: root/assembly/win95/win95.S
diff options
context:
space:
mode:
Diffstat (limited to 'assembly/win95/win95.S')
-rw-r--r--assembly/win95/win95.S8
1 files changed, 7 insertions, 1 deletions
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..."