uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 01dbf400dba9b61e09bbac96a4e1d91e91b06e32
parent 7fe8b27774aa9514e616a4634b30b1aebcd03b3d
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun, 11 Apr 2021 09:58:47 -0700

Removed warning

Diffstat:
Mbuild.sh | 2+-
Msrc/emulator.c | 1+
Msrc/ppu.c | 4++--
3 files changed, 4 insertions(+), 3 deletions(-)

diff --git 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 @@ -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 @@ -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);