diff options
| author | U-Daniel-PC\Daniel <corrnondacqb@yahoo.com> | 2015-02-15 00:47:04 -0500 | 
|---|---|---|
| committer | U-Daniel-PC\Daniel <corrnondacqb@yahoo.com> | 2015-02-15 00:47:04 -0500 | 
| commit | 7696543fb6ccfc8123d63a5f865a6e06b4e55d7a (patch) | |
| tree | feac08a559467fcef71b714b9093001daf1c158e | |
| parent | f3a7706b8ab7ec384698477d4e34deb40344b7ad (diff) | |
wram.o
| -rwxr-xr-x | Makefile | 2 | ||||
| -rwxr-xr-x | main.asm | 1 | ||||
| -rwxr-xr-x | wram.asm | 78 | 
3 files changed, 40 insertions, 41 deletions
| @@ -5,7 +5,7 @@  .SECONDEXPANSION:  ROMS := tcg.gbc -OBJS := main.o gfx.o text.o audio.o +OBJS := main.o gfx.o text.o audio.o wram.o  $(foreach obj, $(OBJS), \  	$(eval $(obj:.o=)_dep := $(shell python extras/scan_includes.py $(obj:.o=.asm))) \ @@ -1,6 +1,5 @@  INCLUDE "constants.asm"  INCLUDE "macros.asm" -INCLUDE "wram.asm"  INCLUDE "hram.asm"  INCLUDE "engine/home.asm" @@ -2,58 +2,58 @@  SECTION "WRAM0", WRAM0  	ds $a00 -wBufOAM: ; ca00 +wBufOAM:: ; ca00  	ds $a0  	ds $13  ; initial value of the A register--used to tell the console when reset -wInitialA: ; cab3 +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 +wConsole:: ; cab4  	ds $1  	ds $1 -wTileMapFill: ; cab6 +wTileMapFill:: ; cab6  	ds $1 -wIE: ; cab7 +wIE:: ; cab7  	ds $1 -wVBlankCtr: ; cab8 +wVBlankCtr:: ; cab8  	ds $1  	ds $1  ; bit0: is in vblank interrupt?  ; bit1: is in timer interrupt? -wReentrancyFlag: ; caba +wReentrancyFlag:: ; caba  	ds $1 -wLCDC: ; cabb +wLCDC:: ; cabb  	ds $1 -wBGP: ; cabc +wBGP:: ; cabc  	ds $1 -wOBP0: ; cabd +wOBP0:: ; cabd  	ds $1 -wOBP1: ; cabe +wOBP1:: ; cabe  	ds $1 -wFlushPaletteFlags: ; cabf +wFlushPaletteFlags:: ; cabf  	ds $1 -wVBlankOAMCopyToggle: ; cac0 +wVBlankOAMCopyToggle:: ; cac0  	ds $1  	ds $2 -wCounterCtr: ; cac3 +wCounterCtr:: ; cac3  	ds $1 -wCounterEnable: ; cac4 +wCounterEnable:: ; cac4  	ds $1  ; byte0: 1/60ths of a second @@ -61,58 +61,58 @@ wCounterEnable: ; cac4  ; byte2: minutes  ; byte3: hours (lower byte)  ; byte4: hours (upper byte) -wCounter: ; cac5 +wCounter:: ; cac5  	ds $5  	ds $6 -wVBlankFunctionTrampoline: ; cad0 +wVBlankFunctionTrampoline:: ; cad0  	ds $20 ; unknown length -wBufPalette: ; caf0 - cab7f +wBufPalette:: ; caf0 - cab7f  	ds $80  	ds $4  ;--- Serial transfer bytes (cb74-cbc4) ---------- -wSerialOp: ; cb74 +wSerialOp:: ; cb74  	ds $1 -wSerialFlags: ; cb75 +wSerialFlags:: ; cb75  	ds $1 -wSerialCounter: ; cb76 +wSerialCounter:: ; cb76  	ds $1 -wSerialCounter2: ; cb77 +wSerialCounter2:: ; cb77  	ds $1 -wSerialTimeoutCounter: ; cb78 +wSerialTimeoutCounter:: ; cb78  	ds $1  	ds $4 -wSerialSendSave: ; cb7d +wSerialSendSave:: ; cb7d  	ds $1 -wSerialSendBufToggle: ; cb7e +wSerialSendBufToggle:: ; cb7e  	ds $1 -wSerialSendBufIndex: ; cb7f +wSerialSendBufIndex:: ; cb7f  	ds $1  	ds $1 -wSerialSendBuf: ; cb81 +wSerialSendBuf:: ; cb81  	ds $20 -wSerialLastReadCA: ; cba1 +wSerialLastReadCA:: ; cba1  	ds $1 -wSerialRecvCounter: ; cba2 +wSerialRecvCounter:: ; cba2  	ds $1  	ds $1 -wSerialRecvIndex: ; cba4 +wSerialRecvIndex:: ; cba4  	ds $1 -wSerialRecvBuf: ; $cba5 - $cbc4 +wSerialRecvBuf:: ; $cba5 - $cbc4  	ds $20  	ds $49 @@ -120,17 +120,17 @@ wSerialRecvBuf: ; $cba5 - $cbc4  ; this seems to hold the current opponent's deck id - 2,  ; perhaps to account for the two unused pointers at the  ; beginning of DeckPointers -wOpponentDeck: ; cc0e +wOpponentDeck:: ; cc0e  	ds $5 -wIsPracticeDuel: ; cc13 +wIsPracticeDuel:: ; cc13  	ds $7 -wDuelTheme: ; cc1a +wDuelTheme:: ; cc1a  	ds $1  	ds $f2 -wUppercaseFlag: ; cd0d +wUppercaseFlag:: ; cd0d  	ds $1 @@ -138,16 +138,16 @@ wUppercaseFlag: ; cd0d  SECTION "WRAM1", WRAMX, BANK[1]  	ds $113 -wMatchStartTheme: ; d113 +wMatchStartTheme:: ; d113  	ds $21c -wCurMap: ; d32f +wCurMap:: ; d32f  	ds $1 -wPlayerXCoord: ; d330 +wPlayerXCoord:: ; d330  	ds $1 -wPlayerYCoord: ; d331 +wPlayerYCoord:: ; d331  	ds $a53  wMusicDC:: ; dd84 | 
