uxn

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

commit d3c3ece6caf9a77c23639d0a564d38edb4603d43
parent 897950dcd4ae210b68cc7790f3719f6818003af0
Author: neauoire <aliceffekt@gmail.com>
Date:   Sun,  8 Aug 2021 09:26:20 -0700

Removed PPU backward compatibility

Diffstat:
Msrc/uxnemu.c | 11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -310,16 +310,7 @@ screen_talk(Device *d, Uint8 b0, Uint8 w) Uint16 x = mempeek16(d->dat, 0x8); Uint16 y = mempeek16(d->dat, 0xa); Uint8 layer = d->dat[0xe] >> 4 & 0x1; - Uint8 mode = d->dat[0xe] >> 5; - if(!mode) - ppu_pixel(&ppu, layer, x, y, d->dat[0xe] & 0x3); - else { - Uint8 *addr = &d->mem[mempeek16(d->dat, 0xc)]; - if(mode-- & 0x1) - ppu_1bpp(&ppu, layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); - else - ppu_2bpp(&ppu, layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); - } + ppu_pixel(&ppu, layer, x, y, d->dat[0xe] & 0x3); reqdraw = 1; } else if(w && b0 == 0xf) { Uint16 x = mempeek16(d->dat, 0x8);