uxn

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

commit ac416bb02f998ebc6aee7a1fcef25f30091f8b47
parent a1d00a2df7d3932b7656e351b3ebbea065592f41
Author: neauoire <aliceffekt@gmail.com>
Date:   Mon,  5 Jul 2021 09:08:55 -0700

Make return pointer counter in inspect() more visible

Diffstat:
Msrc/devices/ppu.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/devices/ppu.c b/src/devices/ppu.c @@ -107,14 +107,14 @@ inspect(Ppu *p, Uint8 *stack, Uint8 wptr, Uint8 rptr, Uint8 *memory) puticn(p, &p->fg, x, y, font[(b >> 4) & 0xf], 1 + (wptr == i) * 0x7, 0, 0); puticn(p, &p->fg, x + 8, y, font[b & 0xf], 1 + (wptr == i) * 0x7, 0, 0); } + /* return pointer */ + puticn(p, &p->fg, 0x8, y + 0x10, font[(rptr >> 4) & 0xf], 0x2, 0, 0); + puticn(p, &p->fg, 0x10, y + 0x10, font[rptr & 0xf], 0x2, 0, 0); for(i = 0; i < 0x40; ++i) { /* memory */ x = ((i % 8) * 3 + 1) * 8, y = (i / 8 + 1) * 8 + p->height - 0x50, b = memory[i]; puticn(p, &p->fg, x, y, font[(b >> 4) & 0xf], 3, 0, 0); puticn(p, &p->fg, x + 8, y, font[b & 0xf], 3, 0, 0); } - /* return pointer */ - puticn(p, &p->fg, 0x8, y + 0x10, font[(rptr >> 4) & 0xf], 0x2, 0, 0); - puticn(p, &p->fg, 0x10, y + 0x10, font[rptr & 0xf], 0x2, 0, 0); for(x = 0; x < 0x10; ++x) { /* guides */ putpixel(p, &p->fg, x, p->height / 2, 2); putpixel(p, &p->fg, p->width - x, p->height / 2, 2);