mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2025-12-30 13:09:20 +11:00
Squashed commit of the following:
commit b29f27ab8d852ff575840060b9af7b62c1b69f68
Author: hkz <tabaglio@posteo.net>
Date: Tue Oct 7 09:01:06 2025 +0200
Removed unused loading_screen.c, Updated CHANGELOG, updated loading
screen
commit 2855ba5209
Author: hkz <tabaglio@posteo.net>
Date: Thu Sep 11 15:42:46 2025 +0200
Restore correct offsets for disk writing
commit e1216fa616
Author: hkz <tabaglio@posteo.net>
Date: Sat Sep 6 10:30:43 2025 +0200
Update the version number
commit 8a4559d4f9
Author: hkz <tabaglio@posteo.net>
Date: Sat Sep 6 09:58:24 2025 +0200
implement a demo mode
commit 22790bdc44
Author: hkz <tabaglio@posteo.net>
Date: Sat Sep 6 08:31:11 2025 +0200
Initial creation of demo module
This commit is contained in:
parent
510d317511
commit
c1060fb449
12 changed files with 261 additions and 243 deletions
|
|
@ -24,7 +24,7 @@
|
|||
static uint8_t *module_page = (uint8_t*)MODULE_PAGE;
|
||||
static shared_page_data * shared_page = (shared_page_data*)SHARED_PAGE;
|
||||
|
||||
#define FILE_LIST_LEN 5
|
||||
#define FILE_LIST_LEN 6
|
||||
#define FNAME_LEN 6
|
||||
#define STATE_FILE_IDX 1
|
||||
|
||||
|
|
@ -37,6 +37,7 @@ static const uint8_t file_table[FILE_LIST_LEN][FNAME_LEN] = {
|
|||
{ 0x80 | 'I', 0x80 | 'N', 0x80 | 'T', 0x80 | 'R', 0x80 | 'O', 0x00}, // INTRO (this executable will show the initial presentation picture)
|
||||
{ 0x80 | 'D', 0x80 | 'L', 0x80 | 'O', 0x80 | 'G', 0xA0, 0x00}, // DLOG (startup, win, lose dialogs)
|
||||
{ 0x80 | 'G', 0x80 | 'A', 0x80 | 'M', 0x80 | 'E', 0xA0, 0x00}, // GAME (the actual game)
|
||||
{ 0x80 | 'D', 0x80 | 'E', 0x80 | 'M', 0x80 | 'O', 0xA0, 0x00}, // DEMO (automatic demo)
|
||||
};
|
||||
|
||||
static uint8_t file_trksec[FILE_LIST_LEN][2]; // This will hold track/sector for initial ts list sector for every one of the listed files. Populated at startup.
|
||||
|
|
@ -46,6 +47,7 @@ static uint16_t file_load_address[FILE_LIST_LEN] = { // This will hold the load
|
|||
MODULE_PAGE,
|
||||
MODULE_PAGE,
|
||||
MODULE_PAGE,
|
||||
MODULE_PAGE,
|
||||
};
|
||||
|
||||
static void init(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue