Fixed enter key stick in F3 menu
This commit is contained in:
@@ -1770,7 +1770,7 @@ NEWSYM saveselect
|
|||||||
pop ebx
|
pop ebx
|
||||||
jmp .noesc
|
jmp .noesc
|
||||||
.enter
|
.enter
|
||||||
mov byte[pressed+28],0
|
mov byte[pressed+28],2
|
||||||
cmp bl,0
|
cmp bl,0
|
||||||
jne .nozero
|
jne .nozero
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
@@ -1786,20 +1786,17 @@ NEWSYM saveselect
|
|||||||
mov ebx,[statefileloc]
|
mov ebx,[statefileloc]
|
||||||
mov byte[fnamest+ebx],al
|
mov byte[fnamest+ebx],al
|
||||||
.esc
|
.esc
|
||||||
mov byte[pressed+1],0
|
|
||||||
mov byte[pressed+28],0
|
mov eax,pressed
|
||||||
;cmp byte[OSPort],1
|
mov ecx,256
|
||||||
;jbe .notpr28b
|
.looppr
|
||||||
%ifndef __MSDOS__
|
cmp byte[eax],1
|
||||||
cmp byte[pressed+1],1
|
jne .notpr
|
||||||
jne .notpr1b
|
mov byte[eax],2
|
||||||
mov byte[pressed+1],2
|
.notpr
|
||||||
.notpr1b
|
inc eax
|
||||||
cmp byte[pressed+28],1
|
loop .looppr
|
||||||
jne .notpr28b
|
|
||||||
mov byte[pressed+28],2
|
|
||||||
%endif
|
|
||||||
.notpr28b
|
|
||||||
mov word[t1cc],0
|
mov word[t1cc],0
|
||||||
mov byte[csounddisable],0
|
mov byte[csounddisable],0
|
||||||
call StartSound
|
call StartSound
|
||||||
@@ -2089,7 +2086,7 @@ NEWSYM saveselect
|
|||||||
pop ebx
|
pop ebx
|
||||||
jmp .noesc16b
|
jmp .noesc16b
|
||||||
.enter16b
|
.enter16b
|
||||||
mov byte[pressed+28],0
|
mov byte[pressed+28],2
|
||||||
cmp bl,0
|
cmp bl,0
|
||||||
jne .nozero16b
|
jne .nozero16b
|
||||||
%ifdef __LINUX__
|
%ifdef __LINUX__
|
||||||
@@ -2105,22 +2102,15 @@ NEWSYM saveselect
|
|||||||
mov ebx,[statefileloc]
|
mov ebx,[statefileloc]
|
||||||
mov byte[fnamest+ebx],al
|
mov byte[fnamest+ebx],al
|
||||||
.esc16b
|
.esc16b
|
||||||
;cmp byte[OSPort],1
|
mov eax,pressed
|
||||||
;jbe .notprwin
|
mov ecx,256
|
||||||
%ifndef __MSDOS__
|
.looppr2
|
||||||
cmp byte[pressed+1],1
|
cmp byte[eax],1
|
||||||
jne .notpr1
|
jne .notpr2
|
||||||
mov byte[pressed+1],2
|
mov byte[eax],2
|
||||||
.notpr1
|
.notpr2
|
||||||
cmp byte[pressed+28],1
|
inc eax
|
||||||
jne .notpr28
|
loop .looppr2
|
||||||
mov byte[pressed+28],2
|
|
||||||
.notpr28
|
|
||||||
jmp .prwin
|
|
||||||
%endif
|
|
||||||
.notprwin
|
|
||||||
mov byte[pressed+1],0
|
|
||||||
mov byte[pressed+28],0
|
|
||||||
.prwin
|
.prwin
|
||||||
mov word[t1cc],0
|
mov word[t1cc],0
|
||||||
mov byte[csounddisable],0
|
mov byte[csounddisable],0
|
||||||
|
|||||||
Reference in New Issue
Block a user