Removed warning

This commit is contained in:
neauoire 2021-04-11 09:58:47 -07:00
parent 7fe8b27774
commit 01dbf400db
3 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,7 @@ else
fi fi
echo "Assembling.." echo "Assembling.."
./bin/assembler projects/software/noodle.usm bin/boot.rom ./bin/assembler projects/examples/dev.controller.keys.usm bin/boot.rom
echo "Running.." echo "Running.."
if [ "${2}" = '--cli' ]; if [ "${2}" = '--cli' ];

View File

@ -327,6 +327,7 @@ start(Uxn *u)
case SDL_TEXTINPUT: case SDL_TEXTINPUT:
if(event.text.text[0] >= ' ' || event.text.text[0] <= '~') if(event.text.text[0] >= ' ' || event.text.text[0] <= '~')
u->ram.dat[devctrl->addr + 3] = event.text.text[0]; u->ram.dat[devctrl->addr + 3] = event.text.text[0];
break;
case SDL_KEYDOWN: case SDL_KEYDOWN:
case SDL_KEYUP: case SDL_KEYUP:
doctrl(u, &event, event.type == SDL_KEYDOWN); doctrl(u, &event, event.type == SDL_KEYDOWN);

View File

@ -110,8 +110,8 @@ drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr)
Uint8 i, x, y, b; Uint8 i, x, y, b;
for(i = 0; i < 0x20; ++i) { /* memory */ for(i = 0; i < 0x20; ++i) { /* memory */
x = ((i % 8) * 3 + 1) * 8, y = (i / 8 + 1) * 8, b = stack[i]; 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, y, font[(b >> 4) & 0xf], 2 + (ptr == i));
puticn(p, p->bg, x + 8, y, font[b & 0xf], 2); puticn(p, p->bg, x + 8, y, font[b & 0xf], 2 + (ptr == i));
} }
for(x = 0; x < 0x20; ++x) { for(x = 0; x < 0x20; ++x) {
drawpixel(p, x, p->height / 2, 2); drawpixel(p, x, p->height / 2, 2);