From fc74f1c6574754ef5f9a11a48e316de59e8c9a2e Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 1 Jun 2025 11:51:16 +0200 Subject: [PATCH] text: added status text stub --- src/defs.s | 7 +++++++ src/main.s | 1 + src/text.s | 4 ++++ src/wram.s | 3 +++ 4 files changed, 15 insertions(+) create mode 100644 src/text.s diff --git a/src/defs.s b/src/defs.s index 5e0492b..25b9a25 100644 --- a/src/defs.s +++ b/src/defs.s @@ -190,3 +190,10 @@ .de map_flags_3, 1 .de map_flags_4, 1 .de map_bg_ptr, 2 + +; special text commands + +; consumes the command +; and interprets the next +; byte as a number +#define TEXT_NUMBER 0x80 diff --git a/src/main.s b/src/main.s index 6ad5a4a..1b90de8 100644 --- a/src/main.s +++ b/src/main.s @@ -67,6 +67,7 @@ main: #include "tiles.inc" #include "unit.s" #include "effect.s" +#include "text.s" ; fill bank .fill 0, 0x7FFF - $ diff --git a/src/text.s b/src/text.s new file mode 100644 index 0000000..b3f4cf7 --- /dev/null +++ b/src/text.s @@ -0,0 +1,4 @@ + + ; draws the status text to the UI +text_status_draw: + ret diff --git a/src/wram.s b/src/wram.s index 5078049..90e40cc 100644 --- a/src/wram.s +++ b/src/wram.s @@ -16,6 +16,9 @@ prev_inputs: .adv 1 game_mode: .adv st_size + ; status text buffer +status_text: .adv 32 + ; current best init found in units_next unit_next_best_init: .adv 1 unit_next_best_act_ptr: .adv 2 -- 2.30.2