Begin adding loading screen

This commit is contained in:
hkz 2025-07-23 20:48:56 +02:00
commit bc20c1390d
5 changed files with 8 additions and 2 deletions

View file

@ -12,7 +12,7 @@ ASM_SRCS = tk2k_startup.s
C_SRCS = main.c monitor_subroutines.c utility.c \
game_graphics.c game_logic.c input.c \
line_data.c tiles.c graph_misc_data.c \
arrows_pic.c
arrows_pic.c loading_screen.c
# Object files
OBJS = $(ASM_SRCS:%.s=%.o) $(C_SRCS:%.c=%.o)

Binary file not shown.

View file

@ -6,7 +6,7 @@
(memory program (address (#x801 . #x1fff)) (type ram)
;;; (section (programStart #x801) (startup #x80e) code switch idata cdata data_init_table))
(section (programStart #x801) (startup #x80e) code))
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram))
(memory displayPage1 (address (#x2000 . #x3fff)) (type ram) (section loadscreen))
(memory datamem (address (#x4000 . #x91ff)) (type ram) (section cstack zdata data heap)) ;;; usermem goes from 0x4000 to 0x9FFFF (included), we are splitting it
(memory upperData (address (#x9200 . #x9fff)) (type ram) (section switch idata cdata data_init_table))
(memory displayPage2 (address (#xa000 . #xbfff)) (type ram))

5
src/loading_screen.c Normal file
View file

@ -0,0 +1,5 @@
#include <stdint.h>
__attribute__((section("loadscreen"))) const uint8_t __loading_screen[] = {0xDE, 0xAD, 0xBE, 0xEF};
#pragma require __loading_screen

View file

@ -33,6 +33,7 @@ void init(void) {
#define SCORE_TEXT_X 32
#define SCORE_TEXT_Y 29
#define SCORE_TEXT_WIDTH 5
#pragma require __loading_screen
__task int main(void) {
uint16_t moves_count;