chip8

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

commit ee627f27d2b9ef57f7ee90234f3f0016ee819d27
parent 344d2cf20840fa152a7a0779d4f2a9375463dd35
Author: Léo Villeveygoux <l@vgx.fr>
Date:   Fri, 10 May 2019 19:23:10 +0200

Better console input display

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

diff --git a/chip8.c b/chip8.c @@ -433,7 +433,7 @@ int main(int argc, char **argv){ printf("i=%5d, DT=%3d, K=[", i, (int)DT); for(int k=0 ; k<16;k++) - printf("%s", KEYBOARD & 1<<k ? "1":"0"); + printf("%c", KEYBOARD & 1<<k ? "0123456789ABCDEF"[k]:'.'); printf("] \r"); }