I usually use direct input without any problem but I don't know what's wrong.
In fact the issue is not direct input it seems.
Here's the code with the issue :
Code:
I can't exit the loop even by pressing enter.
I've tested to put the direct input in the beginning of this function, same issue.
I've tester with another group/key, same issue.
If I remove :
Code:
It works fine...
Someone has an idea ?
About the jp (hl) jump, here's the called function :
Code:
I could probably find by myself as I do usually, but if someone could say me what's wrong, that's pretty cool :p
In fact the issue is not direct input it seems.
Here's the code with the issue :
Code:
EXECUTE_UNTIL_KEYPRESS:
push af
push hl
euk_boucle:
pop hl
pop af
ld de, euk_continuer
push de
jp (hl)
euk_continuer:
push hl
push af
ld a,$FF
out (1),a
ld a,$FD
out (1),a
in a,(1)
cp 254 ; Tested with sub 254 too
jp nz,euk_boucle
pop af
pop hl
ret
I can't exit the loop even by pressing enter.
I've tested to put the direct input in the beginning of this function, same issue.
I've tester with another group/key, same issue.
If I remove :
Code:
ld de, euk_continuer
push de
jp (hl)
It works fine...
Someone has an idea ?
About the jp (hl) jump, here's the called function :
Code:
PUT_BYTE:
ld hl, plotsscreen
ld (hl), a
call FASTCOPY
ret
I could probably find by myself as I do usually, but if someone could say me what's wrong, that's pretty cool :p