Answer the question
In order to leave comments, you need to log in
How to make a delay, and so that the keyboard remembers pressing?
I’m doing a mini game
, something is already working, somehow ...
But here such a problem in the emulator lags, but when the program starts, it flies so I don’t have time to understand what and how,
I found such a delay
mov ah, 86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
Accumulated and pasted it and put the delay into the loop, it turned out to be what you need :)
But now after the delay it doesn’t react that I pressed something only the first time ...
mov ah,01h
int 16h
mov si,0000h
ga1:
mov ah,01h
int 16h
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
mov ah,01h
int 16h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
mov ah,01h
int 16h
inc si
cmp si,0FFFFh
jnz ga1
tp1:
mov ah,01h
int 16h
call ball_set
cmp al,'a'
jz wood_left
cmp al,'d'
jz wood_right
mov si,0000h
ga2:
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
push ax
mov ah,86h
mov cx,0FFFFh
mov dx,0FFFFh
int 15h
pop ax
inc si
cmp si,0FFFFh
jnz ga2
jmp ga0
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question