All files / src/shared/lib/compiler memoryLayout.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  7x     7x     7x 7x     7x     7x     7x    
/** Top of the stack, which grows downwards from here. */
export const STACK_TOP_ADDRESS = 0xdf00;
 
/** ROM capacity available to one compiled source before bank packing. */
export const ROM_BANK_SIZE = 16 * 1024;
 
/** shadow_OAM, declared at 0xC000 in engine/src/core/absolute.c. */
export const SHADOW_OAM_ADDRESS = 0xc000;
export const SHADOW_OAM_SIZE = 0xa0;
 
/** Fixed absolute data above the stack, omitted from linker map files. */
export const ABSOLUTE_DATA_SIZE = 0x100;
 
/** Minimum space retained for the downward-growing stack. */
export const STACK_RESERVE_BYTES = 0x100;
 
/** WRAM occupied by fixed engine data or deliberately retained for the stack. */
export const RESERVED_WRAM_BYTES =
  SHADOW_OAM_SIZE + ABSOLUTE_DATA_SIZE + STACK_RESERVE_BYTES;