diff options
Diffstat (limited to 'wram.asm')
-rwxr-xr-x | wram.asm | 92 |
1 files changed, 77 insertions, 15 deletions
@@ -1,12 +1,20 @@ ;--- Bank 0: $Cxxx ---------------------------------------- SECTION "WRAM0", WRAM0 - ds $ab3 + ds $a00 +wBufOAM: ; ca00 + ds $a0 + ds $13 + +; initial value of the A register--used to tell the console when reset wInitialA: ; cab3 ds $1 +; what console we are playing on, either 0 (DMG), 1 (SGB) or 2 (CGB) +; use constants CONSOLE_DMG, CONSOLE_SGB and CONSOLE_CGB for checks wConsole: ; cab4 - ds $2 + ds $1 + ds $1 wTileMapFill: ; cab6 ds $1 @@ -15,7 +23,13 @@ wIE: ; cab7 ds $1 wVBlankCtr: ; cab8 - ds $3 + ds $1 + ds $1 + +; bit0: is in vblank interrupt? +; bit1: is in timer interrupt? +wReentrancyFlag: ; caba + ds $1 wLCDC: ; cabb ds $1 @@ -27,31 +41,80 @@ wOBP0: ; cabd ds $1 wOBP1: ; cabe - ds $6 + ds $1 + +wFlushPaletteFlags: ; cabf + ds $1 + +wVBlankOAMCopyToggle: ; cac0 + ds $1 + ds $2 + +wCounterCtr: ; cac3 + ds $1 wCounterEnable: ; cac4 ds $1 -wCounter0: ; cac5 +; byte0: 1/60ths of a second +; byte1: seconds +; byte2: minutes +; byte3: hours (lower byte) +; byte4: hours (upper byte) +wCounter: ; cac5 + ds $5 + ds $6 + +wVBlankFunctionTrampoline: ; cad0 + ds $20 ; unknown length + +wBufPalette: ; caf0 - cab7f + ds $80 + ds $4 + +;--- Serial transfer bytes (cb74-cbc4) ---------- +wSerialOp: ; cb74 + ds $1 + +wSerialFlags: ; cb75 + ds $1 + +wSerialCounter: ; cb76 + ds $1 + +wSerialCounter2: ; cb77 + ds $1 + +wSerialTimeoutCounter: ; cb78 ds $1 + ds $4 -wCounter1: ; cac6 +wSerialSendSave: ; cb7d ds $1 -wCounter2: ; cac7 +wSerialSendBufToggle: ; cb7e + ds $1 + +wSerialSendBufIndex: ; cb7f + ds $1 ds $1 -wCounter3: ; cac8 +wSerialSendBuf: ; cb81 + ds $20 + +wSerialLastReadCA: ; cba1 ds $1 -wCounter4: ; cac9 - ds $27 +wSerialRecvCounter: ; cba2 + ds $1 + ds $1 -wBufPalette: ; caf0 - ds $84 +wSerialRecvIndex: ; cba4 + ds $1 -wBufSerial: ; cb74 - ds $9a +wSerialRecvBuf: ; $cba5 - $cbc4 + ds $20 + ds $49 ; this seems to hold the current opponent's deck id - 2, ; perhaps to account for the two unused pointers at the @@ -65,7 +128,6 @@ wIsPracticeDuel: ; cc13 wDuelTheme: ; cc1a ds $1 - ;--- Bank 1: $Dxxx ---------------------------------------- SECTION "WRAM1", WRAMX, BANK[1] ds $113 |