diff options
| -rw-r--r-- | assembly/win95/win95.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/assembly/win95/win95.S b/assembly/win95/win95.S index ace9008..932f230 100644 --- a/assembly/win95/win95.S +++ b/assembly/win95/win95.S @@ -199,12 +199,12 @@ la a0,clearscreenmsg li a7,4 ecall +upgradepassword_restart: + # Clear the input buffer la t0,inputbuf -sd x0,0(t0) -sd x0,2(t0) -sd x0,4(t0) -sw x0,6(t0) +sw x0,0(t0) +sw x0,4(t0) # Print "Enter key: " message li a7,4 @@ -350,7 +350,7 @@ invalidinput: li a7,4 la a0,inputerrormsg ecall -j _start +j upgradepassword_restart menumsg: .asciz "1: Retail Key\n2: OEM Key\n3: Upgrade Password\n\nEnter your choice:\n" keypromptmsg: .asciz "Enter key: " @@ -359,5 +359,5 @@ inputerrormsg: .asciz "Invalid entry\n\n" anykeymsg: .asciz "\n\nPress any key..." oemmsg: .asciz "-OEM-\n0" clearscreenmsg: .asciz "\n\n\n\n\n\n" -inputbuf: .skip 7 +inputbuf: .skip 8 .globl _start |
