chip8

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.vgx.fr/chip8
Log | Files | Refs

commit c72df3113aa2215431d448b335ad8befca4d4383
parent ee627f27d2b9ef57f7ee90234f3f0016ee819d27
Author: Léo Villeveygoux <l@vgx.fr>
Date:   Fri, 24 May 2019 18:48:02 +0200

Fix waiting keys above 8

Diffstat:
Mchip8.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chip8.c b/chip8.c @@ -323,7 +323,7 @@ static void step(){ PC-=2; else { V[I_X(instr)]=0; - for(unsigned char k=KEYBOARD;!(k&1);k>>=1) + for(unsigned short k=KEYBOARD;!(k&1);k>>=1) V[I_X(instr)]++; } return;