2019-11-30 14:48:36 +00:00
|
|
|
public INPUT_WAIT_FOR_CHANGE
|
|
|
|
input_wait_for_change proc far
|
2018-09-17 20:10:42 +00:00
|
|
|
@@frames = word ptr 6
|
|
|
|
|
|
|
|
push bp
|
|
|
|
mov bp, sp
|
|
|
|
push si
|
|
|
|
push di
|
|
|
|
mov si, [bp+@@frames]
|
|
|
|
xor di, di
|
|
|
|
|
|
|
|
@@release_loop:
|
2019-11-30 14:48:36 +00:00
|
|
|
call input_mode_interface
|
2018-09-17 20:10:42 +00:00
|
|
|
cmp _input_sp, INPUT_NONE
|
|
|
|
jz short @@forever?
|
|
|
|
push 1
|
|
|
|
nopcall frame_delay
|
|
|
|
jmp short @@release_loop
|
|
|
|
|
|
|
|
@@forever?:
|
|
|
|
or si, si
|
|
|
|
jnz short @@longer?
|
|
|
|
mov si, 9999
|
|
|
|
jmp short @@longer?
|
|
|
|
|
|
|
|
@@press_loop:
|
2019-11-30 14:48:36 +00:00
|
|
|
call input_mode_interface
|
2018-09-17 20:10:42 +00:00
|
|
|
cmp _input_sp, INPUT_NONE
|
|
|
|
jnz short @@ret
|
|
|
|
inc di
|
|
|
|
push 1
|
|
|
|
nopcall frame_delay
|
|
|
|
cmp si, 9999
|
|
|
|
jnz short @@longer?
|
|
|
|
xor di, di
|
|
|
|
|
|
|
|
@@longer?:
|
|
|
|
cmp di, si
|
|
|
|
jl short @@press_loop
|
|
|
|
|
|
|
|
@@ret:
|
|
|
|
pop di
|
|
|
|
pop si
|
|
|
|
pop bp
|
|
|
|
retf 2
|
2019-11-30 14:48:36 +00:00
|
|
|
input_wait_for_change endp
|