From f6c5eca4aa0c24fecd9e6d5bb7943a5ac229ebae Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sat, 6 Jul 2024 19:05:48 +0200 Subject: [PATCH] v0.5.0 --- Makefile.3ds | 2 +- Makefile.blocksds | 4 ++-- source/3ds/ctr_screen.c | 8 ++++---- source/3ds/emulator.c | 4 ---- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile.3ds b/Makefile.3ds index c6c1e17..4d7204f 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -47,7 +47,7 @@ INCLUDES := include source GRAPHICS := assets/3ds ROMFS := romfs/3ds GFXBUILD := $(ROMFS) -APP_TITLE := uxnds v0.4.10 +APP_TITLE := uxnds v0.5.0 ifeq ($(DEBUG),true) APP_DESCRIPTION := tiny virtual machine (debug) else diff --git a/Makefile.blocksds b/Makefile.blocksds index 5f629a2..f723d45 100644 --- a/Makefile.blocksds +++ b/Makefile.blocksds @@ -7,9 +7,9 @@ NAME := uxnds -GAME_TITLE := uxnds v0.4.10 +GAME_TITLE := uxnds v0.5.0 GAME_SUBTITLE := tiny virtual machine -GAME_AUTHOR := 30/04/2024 +GAME_AUTHOR := 06/07/2024 GAME_ICON := misc/uxn32.png #NAME := donsol diff --git a/source/3ds/ctr_screen.c b/source/3ds/ctr_screen.c index ebae389..3054546 100644 --- a/source/3ds/ctr_screen.c +++ b/source/3ds/ctr_screen.c @@ -264,10 +264,10 @@ Uint8 ctr_screen_dei(Uint8 *d, Uint8 addr) { switch(addr) { - case 0x22: return uxn_ctr_screen.width >> 8; - case 0x23: return uxn_ctr_screen.width; - case 0x24: return uxn_ctr_screen.height >> 8; - case 0x25: return uxn_ctr_screen.height; + case 0x2: return uxn_ctr_screen.width >> 8; + case 0x3: return uxn_ctr_screen.width; + case 0x4: return uxn_ctr_screen.height >> 8; + case 0x5: return uxn_ctr_screen.height; default: return d[addr]; } } diff --git a/source/3ds/emulator.c b/source/3ds/emulator.c index e331704..c6be34c 100644 --- a/source/3ds/emulator.c +++ b/source/3ds/emulator.c @@ -529,10 +529,6 @@ main(int argc, char **argv) return error("Load", "Failed"); } - // Write screen size to dev/screen - poke16(u.dev + 0x20, 2, PPU_PIXELS_WIDTH); - poke16(u.dev + 0x20, 4, PPU_PIXELS_HEIGHT); - start(&u); quit(); return 0;