change the way static RAM variable are declared and used

(cherry picked from commit 6cdb7304c2)
This commit is contained in:
2026-04-24 09:31:04 +02:00
parent 3992863664
commit b0758c6976
5 changed files with 55 additions and 47 deletions

View File

@@ -13,7 +13,6 @@ const asmFilePaths = [
"src/consts/game.asm",
"src/consts/keyboard.asm",
"src/consts/map.asm",
"src/consts/offsets.asm",
"src/consts/scene.asm",
"src/consts/screen.asm",
"src/consts/sprites.asm",
@@ -24,6 +23,7 @@ const asmFilePaths = [
"src/lib/drawing.asm",
"src/lib/sprite_rotation.asm",
];
const reservedSpacePath = 'src/reserved_space.asm';
const mapWidth = 15;
const spriteWidth = 5;
@@ -93,6 +93,14 @@ for (const [label, path] of Object.entries(spritesPath)) {
console.log(asmRawRepresentations.join("\n\n"));
console.log(`
;
; RESERVED RAM SPACE
;
`);
console.log(await Deno.readTextFile(reservedSpacePath))
/**
* Return an ASM representation of the given data
*