diff options
author | Bad Diode <bd@badd10de.dev> | 2021-05-19 12:22:42 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-05-19 12:22:42 +0200 |
commit | fd5dede600bcaf8d5c16963544512b2e0ba68586 (patch) | |
tree | dfcf87c67ec114e34a92e07b7545afcf75ee4d2d /src/main.c | |
parent | 9873680f9d24e30afc1962987fac2c3ad1612f7b (diff) | |
download | uxngba-fd5dede600bcaf8d5c16963544512b2e0ba68586.tar.gz uxngba-fd5dede600bcaf8d5c16963544512b2e0ba68586.zip |
Test automata drawing
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,7 +10,8 @@ | |||
10 | #include "uxn/uxn.c" | 10 | #include "uxn/uxn.c" |
11 | #include "uxn/devices/ppu.h" | 11 | #include "uxn/devices/ppu.h" |
12 | #include "uxn/devices/ppu.c" | 12 | #include "uxn/devices/ppu.c" |
13 | #include "uxn/roms/dvd.c" | 13 | // #include "uxn/roms/dvd.c" |
14 | #include "uxn/roms/automata.c" | ||
14 | 15 | ||
15 | /* | 16 | /* |
16 | Copyright (c) 2021 Bad Diode | 17 | Copyright (c) 2021 Bad Diode |
@@ -69,7 +70,7 @@ screen_talk(Device *d, Uint8 b0, Uint8 w) { | |||
69 | Uint8 *layer = d->dat[0xe] >> 4 & 0x1 ? ppu.fg : ppu.bg; | 70 | Uint8 *layer = d->dat[0xe] >> 4 & 0x1 ? ppu.fg : ppu.bg; |
70 | Uint8 mode = d->dat[0xe] >> 5; | 71 | Uint8 mode = d->dat[0xe] >> 5; |
71 | if(!mode) { | 72 | if(!mode) { |
72 | // putpixel(&ppu, layer, x, y, d->dat[0xe] & 0x3); | 73 | putpixel(&ppu, layer, x, y, d->dat[0xe] & 0x3); |
73 | } else if(mode-- & 0x1) { | 74 | } else if(mode-- & 0x1) { |
74 | puticn(&ppu, layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); | 75 | puticn(&ppu, layer, x, y, addr, d->dat[0xe] & 0xf, mode & 0x2, mode & 0x4); |
75 | } else { | 76 | } else { |