; This file contains struct defintions
-.section structs
#include "hram.s"
#include "sram.s"
-.section boot
-
.org 0x0
+.section prgrom
#include "jmp.inc"
.fill 0, 0x100 - $
#include "header.inc"
-.section prgrom
entry:
ld sp, STACK_BEGIN
-.section wram
-
#define MAPRAM 0xD000
; this RAM bank stores the current map
.org MAPRAM
+.section wram
; first map
map0: .adv roomb_size * ROOMS_TOTAL
-.section oamdef
-
; oam memory layout
.se 0
.de oamy, 1
-.section wram
-
#define WRAM 0xC000
#define WRAMLEN 0xFFF
#define STACK_BEGIN 0xDFFF
.org WRAM
+.section wram
.def int OAMDMAFN = 0xFF80