change the way static RAM variable are declared and used
(cherry picked from commit 6cdb7304c2)
This commit is contained in:
10
build.ts
10
build.ts
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user