aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 21bc2a7..06353e0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -133,7 +133,14 @@ system_talk(Device *d, u8 b0, u8 w) {
133IWRAM_CODE 133IWRAM_CODE
134void 134void
135screen_talk(Device *d, u8 b0, u8 w) { 135screen_talk(Device *d, u8 b0, u8 w) {
136 if (w) { 136 if (!w) {
137 switch(b0) {
138 case 0x2: d->dat[b0] = (SCREEN_WIDTH >> 8); break;
139 case 0x3: d->dat[b0] = (SCREEN_WIDTH); break;
140 case 0x4: d->dat[b0] = (SCREEN_HEIGHT >> 8); break;
141 case 0x5: d->dat[b0] = (SCREEN_HEIGHT); break;
142 }
143 } else {
137 switch (b0) { 144 switch (b0) {
138 case 0x1: { 145 case 0x1: {
139 d->vector = mempeek16(d->dat, 0x0); 146 d->vector = mempeek16(d->dat, 0x0);
@@ -269,7 +276,7 @@ file_talk(Device *d, u8 b0, u8 w) {
269void 276void
270init_uxn(Uxn *u) { 277init_uxn(Uxn *u) {
271 // Initialize PPU. 278 // Initialize PPU.
272 initppu(&ppu, 30, 20, 0); 279 initppu(&ppu, 30, 20);
273 280
274 // Enable sound. 281 // Enable sound.
275 init_sound(); 282 init_sound();