change the way static RAM variable are declared and used

This commit is contained in:
2026-04-24 09:31:04 +02:00
parent e6b2d8b086
commit 6cdb7304c2
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 = 17;
@@ -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
*