Add initialization code

This commit is contained in:
hkz 2025-07-29 10:14:44 +02:00
commit 36ad3da27e
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,6 @@
(define memories
'((memory zeroPage (address (#x72 . #xdf)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted
;;; '((memory zeroPage (address (#x72 . #xdf)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted
'((memory zeroPage (address (#x56 . #xff)) (type ram) ;;; Should be starting at 0x56, ending at 0xff, but experiments in the monitor have shown doc is not to be trusted
(section registers zpage zzpage))
(memory firstPage (address (#x100 . #x1ff)) (section stack))
(memory reserved (address (#x200 . #x7ff)) (type ram))

View file

@ -11,7 +11,11 @@
#include "game_graphics.h"
#include "monitor_subroutines.h"
// External initialization requirements
#pragma require __preserve_zp
//#pragma require __call_heap_initialize
#pragma require __data_initialization_needed
// Make sure the loading screen is included
#pragma require __loading_screen