diff --git a/build.sh b/build.sh index b3063de..48cff29 100755 --- a/build.sh +++ b/build.sh @@ -32,7 +32,7 @@ else fi echo "Assembling.." -./bin/assembler projects/software/noodle.usm bin/boot.rom +./bin/assembler projects/examples/dev.controller.keys.usm bin/boot.rom echo "Running.." if [ "${2}" = '--cli' ]; diff --git a/src/emulator.c b/src/emulator.c index 3de3217..488e5fe 100644 --- a/src/emulator.c +++ b/src/emulator.c @@ -327,6 +327,7 @@ start(Uxn *u) case SDL_TEXTINPUT: if(event.text.text[0] >= ' ' || event.text.text[0] <= '~') u->ram.dat[devctrl->addr + 3] = event.text.text[0]; + break; case SDL_KEYDOWN: case SDL_KEYUP: doctrl(u, &event, event.type == SDL_KEYDOWN); diff --git a/src/ppu.c b/src/ppu.c index 6c71f7d..369c76a 100644 --- a/src/ppu.c +++ b/src/ppu.c @@ -110,8 +110,8 @@ drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr) Uint8 i, x, y, b; for(i = 0; i < 0x20; ++i) { /* memory */ x = ((i % 8) * 3 + 1) * 8, y = (i / 8 + 1) * 8, b = stack[i]; - puticn(p, p->bg, x, y, font[(b >> 4) & 0xf], 2); - puticn(p, p->bg, x + 8, y, font[b & 0xf], 2); + puticn(p, p->bg, x, y, font[(b >> 4) & 0xf], 2 + (ptr == i)); + puticn(p, p->bg, x + 8, y, font[b & 0xf], 2 + (ptr == i)); } for(x = 0; x < 0x20; ++x) { drawpixel(p, x, p->height / 2, 2);