Add support for OAM Sections

Allows sections (and labels within) to be defined that correspond to the Game Boy’s Object Attributes Memory.
This commit is contained in:
Ben10do
2017-03-10 22:18:14 +00:00
parent 523b7538f0
commit 3dcfe2b9f6
10 changed files with 26 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ getsymbank(SLONG symid)
errx(1, "*INTERNAL* UNKNOWN SYMBOL TYPE");
}
if (nBank == BANK_WRAM0) return 0;
if (nBank == BANK_WRAM0 || nBank == BANK_OAM) return 0;
if (nBank >= BANK_WRAMX && nBank < (BANK_WRAMX + BANK_COUNT_WRAMX))
return nBank - BANK_WRAMX + 1;
if (nBank >= BANK_VRAM && nBank < (BANK_VRAM + BANK_COUNT_VRAM))