summaryrefslogtreecommitdiff
path: root/assembly
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-10-02 09:48:22 -0500
committercheapie <cheapiephp@gmail.com>2026-10-02 09:48:22 -0500
commit9a270c2db2c8af8b15ba70ca810a92a3c93c87fa (patch)
treecde82a887243bb36fd07cb74aa101e69352a80b4 /assembly
parente3353187bfd9090079e30ab01183eb6588d7b8b7 (diff)
downloadrvcontroller-main.tar
rvcontroller-main.tar.gz
rvcontroller-main.tar.bz2
rvcontroller-main.tar.xz
rvcontroller-main.zip
Allow quitting the password generator if the user doesn't want to continueHEADmain
Diffstat (limited to 'assembly')
-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..."