summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
Diffstat (limited to 'home')
-rw-r--r--home/audio.asm10
-rw-r--r--home/bankswitch.asm12
-rw-r--r--home/clear_sprites.asm12
-rw-r--r--home/copy.asm12
-rw-r--r--home/copy2.asm4
-rw-r--r--home/cry.asm4
-rw-r--r--home/delay.asm4
-rw-r--r--home/fade.asm12
-rw-r--r--home/farcall.asm12
-rw-r--r--home/init.asm8
-rw-r--r--home/interrupts.asm16
-rwxr-xr-xhome/items.asm22
-rw-r--r--home/joypad.asm4
-rw-r--r--home/jumptable.asm12
-rw-r--r--home/lcd.asm4
-rw-r--r--home/map.asm4
-rw-r--r--home/map_objects.asm4
-rw-r--r--home/math.asm12
-rw-r--r--home/menu.asm4
-rw-r--r--home/menu_window.asm4
-rw-r--r--home/misc_32c8.asm22
-rw-r--r--home/mon_stats.asm12
-rw-r--r--home/movement.asm4
-rw-r--r--home/names.asm14
-rw-r--r--home/oam_dma.asm4
-rw-r--r--home/overworld.asm22
-rw-r--r--home/pic.asm4
-rw-r--r--home/pokemon.asm22
-rw-r--r--home/predef.asm12
-rw-r--r--home/print_bcd.asm10
-rw-r--r--home/print_hex.asm12
-rw-r--r--home/print_num.asm12
-rw-r--r--home/print_text.asm12
-rw-r--r--home/random.asm12
-rw-r--r--home/rst.asm16
-rw-r--r--home/rtc.asm11
-rw-r--r--home/scrolling_menu.asm12
-rw-r--r--home/serial.asm4
-rw-r--r--home/sram.asm12
-rwxr-xr-xhome/tables.asm4
-rw-r--r--home/talk_to_npc.asm12
-rw-r--r--home/text.asm4
-rw-r--r--home/tilemap.asm12
-rw-r--r--home/tileset.asm4
-rw-r--r--home/time.asm4
-rw-r--r--home/toolgear.asm2
-rw-r--r--home/unknown.asm18
-rw-r--r--home/unknown_388f.asm12
-rw-r--r--home/util.asm12
-rw-r--r--home/vblank.asm4
-rw-r--r--home/vcopy.asm4
-rw-r--r--home/window.asm4
52 files changed, 250 insertions, 251 deletions
diff --git a/home/audio.asm b/home/audio.asm
index 609c8dc..c157bed 100644
--- a/home/audio.asm
+++ b/home/audio.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Audio interface", ROM0[$3CBF]
-else
-SECTION "Audio interface", ROM0[$3C83]
-endc
+; if DEBUG
+SECTION "home/audio.asm", ROM0
+; else
+; SECTION "Audio interface", ROM0[$3C83]
+; endc
DisableAudio:: ; 3cbf
push hl
diff --git a/home/bankswitch.asm b/home/bankswitch.asm
index 278013c..a0e0d9d 100644
--- a/home/bankswitch.asm
+++ b/home/bankswitch.asm
@@ -1,14 +1,14 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Bankswitch", ROM0[$32C2]
-else
-SECTION "Bankswitch", ROM0[$3286]
-endc
+; if DEBUG
+SECTION "home/bankswitch.asm", ROM0
+; else
+; SECTION "Bankswitch", ROM0[$3286]
+; endc
; Moved to a rst vector in final US releases (not sure about JP)
; All rst vectors are unused at this point in development
Bankswitch:: ; 32c2
ldh [hROMBank], a
ld [MBC3RomBank], a
- ret
+ ret \ No newline at end of file
diff --git a/home/clear_sprites.asm b/home/clear_sprites.asm
index 489b375..dca5479 100644
--- a/home/clear_sprites.asm
+++ b/home/clear_sprites.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Sprite clearing", ROM0[$32DC]
-else
-SECTION "Sprite clearing", ROM0[$32A0]
-endc
+; if DEBUG
+SECTION "home/clear_sprites.asm", ROM0
+; else
+; SECTION "Sprite clearing", ROM0[$32A0]
+; endc
ClearSprites:: ; 32dc
ld hl, wVirtualOAM
@@ -26,4 +26,4 @@ HideSprites:: ; 32e7
add hl, de
dec b
jr nz, .loop
- ret
+ ret \ No newline at end of file
diff --git a/home/copy.asm b/home/copy.asm
index e5ba9cf..6efabc4 100644
--- a/home/copy.asm
+++ b/home/copy.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Copy functions", ROM0[$32F7]
-else
-SECTION "Copy functions", ROM0[$32BB]
-endc
+; if DEBUG
+SECTION "home/copy.asm", ROM0
+; else
+; SECTION "Copy functions", ROM0[$32BB]
+; endc
FarCopyBytes:: ; 32f7
; Copy bc bytes from a:hl to de.
@@ -111,4 +111,4 @@ CopyString::
ld [hli], a
cp "@"
jr nz, CopyString
- ret
+ ret \ No newline at end of file
diff --git a/home/copy2.asm b/home/copy2.asm
index e74ef8b..1a30e63 100644
--- a/home/copy2.asm
+++ b/home/copy2.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Video Copy functions", ROM0[$0D02]
+SECTION "home/copy2.asm", ROM0
RedrawPlayerSprite::
jpab _RedrawPlayerSprite
@@ -191,4 +191,4 @@ Copy1bpp:: ; 0e06
pop af
pop hl
jp FarCopyDataDouble
-; 0xe18
+; 0xe18 \ No newline at end of file
diff --git a/home/cry.asm b/home/cry.asm
index 112505e..02a281b 100644
--- a/home/cry.asm
+++ b/home/cry.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "Cry Home", ROM0 [$39b1]
+SECTION "home/cry.asm", ROM0
PlayStereoCry::
push af
@@ -101,4 +101,4 @@ Function3a42::
ld b, $0
add hl, bc
ld a, [hl]
- ret
+ ret \ No newline at end of file
diff --git a/home/delay.asm b/home/delay.asm
index 286cc0c..2f8ec13 100644
--- a/home/delay.asm
+++ b/home/delay.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Delay", ROM0[$0317]
+SECTION "home/delay.asm", ROM0
DelayFrame::
; Wait for one frame
@@ -19,4 +19,4 @@ DelayFrames::
call DelayFrame
dec c
jr nz, DelayFrames
- ret
+ ret \ No newline at end of file
diff --git a/home/fade.asm b/home/fade.asm
index e39bd83..4da54a0 100644
--- a/home/fade.asm
+++ b/home/fade.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "DMG Palette Fade Effect", ROM0 [$0343]
-else
-SECTION "DMG Palette Fade Effect", ROM0 [$0307]
-endc
+; if DEBUG
+SECTION "home/fade.asm", ROM0
+; else
+; SECTION "DMG Palette Fade Effect", ROM0 [$0307]
+; endc
Function0343:: ; 0343
ld a, [wTimeOfDayPal]
@@ -92,4 +92,4 @@ IncGradGBPalTable_12:: db %11100100, %11010000, %11100000
IncGradGBPalTable_13:: db %10010000, %10000000, %10010000
IncGradGBPalTable_14:: db %01000000, %01000000, %01000000
-IncGradGBPalTable_15:: db %00000000, %00000000, %00000000
+IncGradGBPalTable_15:: db %00000000, %00000000, %00000000 \ No newline at end of file
diff --git a/home/farcall.asm b/home/farcall.asm
index 3fcf37f..7f4d759 100644
--- a/home/farcall.asm
+++ b/home/farcall.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Farcall", ROM0[$2FA8]
-else
-SECTION "FarCall", ROM0[$2F6C]
-endc
+; if DEBUG
+SECTION "home/farcall.asm", ROM0
+; else
+; SECTION "FarCall", ROM0[$2F6C]
+; endc
FarCall_hl:: ; 2fa8
push af
@@ -39,4 +39,4 @@ FarCall_hl:: ; 2fa8
ld b, a
ld a, [wFarCallBCBuffer + 1]
ld c, a
- ret
+ ret \ No newline at end of file
diff --git a/home/init.asm b/home/init.asm
index 17971c7..7407f63 100644
--- a/home/init.asm
+++ b/home/init.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-SECTION "Entry point", ROM0[$100]
+SECTION "home/init.asm@Entry point", ROM0
nop
jp Init
-SECTION "Global check value", ROM0[$14E]
+SECTION "home/init.asm@Global check value", ROM0
; The ROM has an incorrect global check, so set it here
; It is not corrected by RGBFIX
if def(GOLD)
@@ -21,7 +21,7 @@ else
endc
endc
-SECTION "Init", ROM0[$51C]
+SECTION "home/init.asm@Init", ROM0
Reset: ; 51c (0:051c)
call DisableAudio
@@ -153,4 +153,4 @@ _FillBGMap:
jr nz, .loop
dec d
jr nz, .loop
- ret
+ ret \ No newline at end of file
diff --git a/home/interrupts.asm b/home/interrupts.asm
index f9d8ba1..949b351 100644
--- a/home/interrupts.asm
+++ b/home/interrupts.asm
@@ -1,28 +1,28 @@
INCLUDE "constants.asm"
-SECTION "VBlank interrupt vector", ROM0[$040]
+SECTION "home/interrupts.asm@VBlank interrupt vector", ROM0
jp VBlank
-SECTION "LCD interrupt vector", ROM0[$048]
+SECTION "home/interrupts.asm@LCD interrupt vector", ROM0
jp LCD
-SECTION "Timer interrupt vector", ROM0[$050]
+SECTION "home/interrupts.asm@Timer interrupt vector", ROM0
jp TimerDummy
-SECTION "Serial interrupt vector", ROM0[$058]
+SECTION "home/interrupts.asm@Serial interrupt vector", ROM0
jp Serial
-SECTION "Joypad interrupt vector", ROM0[$060]
+SECTION "home/interrupts.asm@Joypad interrupt vector", ROM0
jp JoypadDummy
-SECTION "Timer dummy interrupt", ROM0[$42A]
+SECTION "home/interrupts.asm@Timer dummy interrupt", ROM0
TimerDummy: ; 042a
reti
-SECTION "Joypad dummy interrupt", ROM0[$7F7]
+SECTION "home/interrupts.asm@Joypad dummy interrupt", ROM0
JoypadDummy: ; 07f7
- reti
+ reti \ No newline at end of file
diff --git a/home/items.asm b/home/items.asm
index 332d5e1..f37a4df 100755
--- a/home/items.asm
+++ b/home/items.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "TossItem", ROM0[$3243]
-else
-SECTION "TossItem", ROM0[$3207]
-endc
+; if DEBUG
+SECTION "home/items.asm@TossItem", ROM0
+; else
+; SECTION "TossItem", ROM0[$3207]
+; endc
TossItem: ; 00:3243
ldh a, [hROMBank]
@@ -45,11 +45,11 @@ ReceiveItem:: ; 3259
pop bc
ret
-if DEBUG
-SECTION "GiveItem", ROM0[$366C]
-else
-SECTION "GiveItem", ROM0[$3630]
-endc
+; if DEBUG
+SECTION "home/items.asm@GiveItem", ROM0
+; else
+; SECTION "GiveItem", ROM0[$3630]
+; endc
GiveItem::
; Give player quantity c of item b,
@@ -66,4 +66,4 @@ GiveItem::
call GetItemName
call CopyStringToStringBuffer2
scf
- ret
+ ret \ No newline at end of file
diff --git a/home/joypad.asm b/home/joypad.asm
index faa7cf0..6581413 100644
--- a/home/joypad.asm
+++ b/home/joypad.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Joypad functions", ROM0[$07F8]
+SECTION "home/joypad.asm", ROM0
ClearJoypad::
xor a
@@ -290,4 +290,4 @@ TextboxBlinkCursor:: ; 914 (0:914)
ldh [hTextBoxCursorBlinkInterval + 1], a ; reset to 0x6FF iterations
ld a, "▼"
ld [hl], a
- ret
+ ret \ No newline at end of file
diff --git a/home/jumptable.asm b/home/jumptable.asm
index 15d414b..4f9294f 100644
--- a/home/jumptable.asm
+++ b/home/jumptable.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Jumptable functions", ROM0[$35cd]
-else
-SECTION "Jumptable functions", ROM0[$3591]
-endc
+; if DEBUG
+SECTION "home/jumptable.asm", ROM0
+; else
+; SECTION "Jumptable functions", ROM0[$3591]
+; endc
CallJumptable:: ; 35cd (0:35cd)
; CallJumptable
@@ -44,4 +44,4 @@ CallFar_atHL::
call Bankswitch
ret
.jump: ; 35eb (0:35eb)
- jp hl
+ jp hl \ No newline at end of file
diff --git a/home/lcd.asm b/home/lcd.asm
index e915806..4553f09 100644
--- a/home/lcd.asm
+++ b/home/lcd.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "LCD functions", ROM0[$3AE]
+SECTION "home/lcd.asm", ROM0
LCD:: ; 03ae
push af
@@ -77,4 +77,4 @@ EnableLCD:: ; 0423
ld a, [rLCDC]
set 7, a
ld [rLCDC], a
- ret
+ ret \ No newline at end of file
diff --git a/home/map.asm b/home/map.asm
index 7b9bd71..58c568d 100644
--- a/home/map.asm
+++ b/home/map.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Map functions", ROM0[$20FF]
+SECTION "home/map.asm", ROM0
; Runs a map script indexed by wMapScriptNumber
RunMapScript:: ; 20ff
@@ -1731,4 +1731,4 @@ Function2be5:: ; 00:2be5 ; TODO
jp hl
.Return: ; 00:2c04
- ret
+ ret \ No newline at end of file
diff --git a/home/map_objects.asm b/home/map_objects.asm
index c473e13..6c3c640 100644
--- a/home/map_objects.asm
+++ b/home/map_objects.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "Map Object Related Functions", ROM0 [$15b5]
+SECTION "home/map_objects.asm", ROM0
Function15b5:: ; 15b5
callab Function8000
@@ -683,4 +683,4 @@ SetObjectFacing:: ; 19C0
ld hl, OBJECT_DIRECTION_WALKING
add hl, bc
ld [hl], a
- ret
+ ret \ No newline at end of file
diff --git a/home/math.asm b/home/math.asm
index 8b3db6f..dd7718d 100644
--- a/home/math.asm
+++ b/home/math.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Math utility functions", ROM0 [$3380]
-else
-SECTION "Math utility functions", ROM0 [$3344]
-endc
+; if DEBUG
+SECTION "home/math.asm", ROM0
+; else
+; SECTION "Math utility functions", ROM0 [$3344]
+; endc
Multiply::
push hl
@@ -22,4 +22,4 @@ Divide::
pop bc
pop de
pop hl
- ret
+ ret \ No newline at end of file
diff --git a/home/menu.asm b/home/menu.asm
index f84554c..3199400 100644
--- a/home/menu.asm
+++ b/home/menu.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "Menu Functions", ROM0 [$1d49]
+SECTION "home/menu.asm", ROM0
LoadMenuHeader:: ; 00:1d49
call CopyMenuHeader
@@ -422,4 +422,4 @@ ClearWindowData:: ; 00:1f9e
ld bc, 16
xor a
call ByteFill
- ret
+ ret \ No newline at end of file
diff --git a/home/menu_window.asm b/home/menu_window.asm
index 104a8eb..4911863 100644
--- a/home/menu_window.asm
+++ b/home/menu_window.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "Menu Window Functions", ROM0 [$1a64]
+SECTION "home/menu_window.asm", ROM0
SetMenuAttributes::
push hl
@@ -518,4 +518,4 @@ Coord2Tile:: ; 00:1d35
add hl, bc
bccoord 0, 0
add hl, bc
- ret
+ ret \ No newline at end of file
diff --git a/home/misc_32c8.asm b/home/misc_32c8.asm
index 00e41ce..ae12d23 100644
--- a/home/misc_32c8.asm
+++ b/home/misc_32c8.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Unknown 32c8", ROM0[$32c8]
-else
-SECTION "Unknown 32c8", ROM0[$328c]
-endc
+; if DEBUG
+SECTION "home/misc_32c8.asm@Unknown 32c8", ROM0
+; else
+; SECTION "Unknown 32c8", ROM0[$328c]
+; endc
Function32c8::
predef GetItemAmount
@@ -27,11 +27,11 @@ SubtractSigned::
scf
ret
-if DEBUG
-SECTION "Unknown 3686", ROM0[$3686]
-else
-SECTION "Unknown 3686", ROM0[$364a]
-endc
+; if DEBUG
+SECTION "home/misc_32c8.asm@Unknown 3686", ROM0
+; else
+; SECTION "Unknown 3686", ROM0[$364a]
+; endc
GiveMonToPlayer:: ; 3686
; Give to the player Pokemon of species b at level c.
@@ -95,4 +95,4 @@ CountSetBits:: ; 36b1
jr nz, .asm_36b3
ld a, c
ld [wCountSetBitsResult], a
- ret
+ ret \ No newline at end of file
diff --git a/home/mon_stats.asm b/home/mon_stats.asm
index e84e552..e5b16db 100644
--- a/home/mon_stats.asm
+++ b/home/mon_stats.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Mon Stats", ROM0 [$394b]
-else
-SECTION "Mon Stats", ROM0 [$390f]
-endc
+; if DEBUG
+SECTION "home/mon_stats.asm", ROM0
+; else
+; SECTION "Mon Stats", ROM0 [$390f]
+; endc
DrawBattleHPBar::
push hl
@@ -79,4 +79,4 @@ _PrepMonFrontpic::
ld [wSpriteFlipped], a
inc a
ld [wMonDexIndex], a
- ret
+ ret \ No newline at end of file
diff --git a/home/movement.asm b/home/movement.asm
index 212a4b3..b1dd6c0 100644
--- a/home/movement.asm
+++ b/home/movement.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Movement ROM0", ROM0 [$19d1]
+SECTION "home/movement.asm", ROM0
InitMovementBuffer::
ld [wMovementBufferObject], a
@@ -126,4 +126,4 @@ ComputePathToWalkToPlayer::
; big_step DOWN
; big_step UP
; big_step LEFT
-; big_step RIGHT
+; big_step RIGHT \ No newline at end of file
diff --git a/home/names.asm b/home/names.asm
index aacd285..d8739e5 100644
--- a/home/names.asm
+++ b/home/names.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Names", ROM0[$36c8]
-else
-SECTION "Names", ROM0[$368c] ; Unsure
-endc
+; if DEBUG
+SECTION "home/names.asm@Names", ROM0
+; else
+; SECTION "Names", ROM0[$368c] ; Unsure
+; endc
NamesPointers:: ; 00:36c8
; entries correspond to GetName constants (see constants/text_constants.asm)
@@ -244,7 +244,7 @@ Unreferenced_GetMoveName:: ; 00:37fc
pop hl
ret
-SECTION "GetNick", ROM0[$3a97]
+SECTION "home/names.asm@GetNick", ROM0
GetNick: ; 00:3a97
; Get nickname a from list hl.
@@ -259,4 +259,4 @@ GetNick: ; 00:3a97
callab CorrectNickErrors
pop bc
pop hl
- ret
+ ret \ No newline at end of file
diff --git a/home/oam_dma.asm b/home/oam_dma.asm
index 42c68e7..db08f0e 100644
--- a/home/oam_dma.asm
+++ b/home/oam_dma.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "OAM DMA", ROMX[$4153], BANK[$01]
+SECTION "home/oam_dma.asm", ROMX
WriteOAMDMACodeToHRAM:: ; 4153
ld c, LOW(hOAMDMA)
@@ -22,4 +22,4 @@ WriteOAMDMACodeToHRAM:: ; 4153
dec a
jr nz, .wait
ret
-.OAMDMAEnd ; 416b
+.OAMDMAEnd ; 416b \ No newline at end of file
diff --git a/home/overworld.asm b/home/overworld.asm
index 51ba0f5..f276ea1 100644
--- a/home/overworld.asm
+++ b/home/overworld.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Startmenu and Select Button Check", ROM0[$2C05]
-else
-SECTION "Startmenu and Select Button Check", ROM0[$2BDF]
-endc
+; if DEBUG
+SECTION "home/overworld.asm@Startmenu and Select Button Check", ROM0
+; else
+; SECTION "Startmenu and Select Button Check", ROM0[$2BDF]
+; endc
OverworldStartButtonCheck:: ; 2c05 (0:2c05)
ldh a, [hJoyState]
@@ -177,11 +177,11 @@ ScheduleColumnRedrawHelper: ; 2d10 (0:2d10)
jr nz, .loop
ret
-if DEBUG
-SECTION "QueueScript", ROM0[$35EC]
-else
-SECTION "QueueScript", ROM0[$35B0]
-endc
+; if DEBUG
+SECTION "home/overworld.asm@QueueScript", ROM0
+; else
+; SECTION "QueueScript", ROM0[$35B0]
+; endc
QueueScript::
; Install a function that is called as soon as
@@ -192,4 +192,4 @@ QueueScript::
ld [wQueuedScriptAddr], a
ld a, h
ld [wQueuedScriptAddr + 1], a
- ret
+ ret \ No newline at end of file
diff --git a/home/pic.asm b/home/pic.asm
index 04cf7bb..2b36a57 100644
--- a/home/pic.asm
+++ b/home/pic.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Decompression Functions", ROM0[$095E]
+SECTION "home/pic.asm", ROM0
UncompressSpriteData:: ; 95e (0:95e)
; bankswitches and runs _UncompressSpriteData
@@ -589,4 +589,4 @@ StoreSpriteOutputPointer:: ; cf3 (0:cf3)
ld a, h
ld [wSpriteOutputPtr + 1], a
ld [wSpriteOutputPtrCached + 1], a
- ret
+ ret \ No newline at end of file
diff --git a/home/pokemon.asm b/home/pokemon.asm
index d2add97..a98122c 100644
--- a/home/pokemon.asm
+++ b/home/pokemon.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "3A4B", ROM0[$3A4B]
-else
-SECTION "3A4B", ROM0[$3A0F]
-endc
+; if DEBUG
+SECTION "home/pokemon.asm@3A4B", ROM0
+; else
+; SECTION "3A4B", ROM0[$3A0F]
+; endc
GetMonHeader:: ; 3a4b (0:3a4b)
; copies the base stat data of a pokemon to wMonHeader
; INPUT:
@@ -47,11 +47,11 @@ GetMonHeader:: ; 3a4b (0:3a4b)
pop bc
ret
-if DEBUG
-SECTION "3AED", ROM0[$3AED]
-else
-SECTION "3AED", ROM0[$3AB1]
-endc
+; if DEBUG
+SECTION "home/pokemon.asm@3AED", ROM0
+; else
+; SECTION "3AED", ROM0[$3AB1]
+; endc
UncompressMonSprite:: ; 3aed (0:3aed)
; Uncompresses the front or back sprite of the specified mon
@@ -294,4 +294,4 @@ _InterlaceMergeSpriteBuffers:: ; 3bdf (0:3bdf)
dec a
ldh [hSpriteInterlaceCounter], a
jr nz, .interlaceLoopFlipped
- ret
+ ret \ No newline at end of file
diff --git a/home/predef.asm b/home/predef.asm
index e6d5019..c9457a8 100644
--- a/home/predef.asm
+++ b/home/predef.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Predef", ROM0[$2FDE]
-else
-SECTION "Predef", ROM0[$2FA2]
-endc
+; if DEBUG
+SECTION "home/predef.asm", ROM0
+; else
+; SECTION "Predef", ROM0[$2FA2]
+; endc
Predef:: ; 2fde
ld [wPredefID], a
@@ -46,4 +46,4 @@ Predef:: ; 2fde
ld b, a
ld a, [wPredefBC + 1]
ld c, a
- ret
+ ret \ No newline at end of file
diff --git a/home/print_bcd.asm b/home/print_bcd.asm
index ed110e9..8b96d4b 100644
--- a/home/print_bcd.asm
+++ b/home/print_bcd.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "BCD Functions", ROM0[$3AB2]
-else
-SECTION "BCD Functions", ROM0[$3A76]
-endc
+; if DEBUG
+SECTION "home/print_bcd.asm", ROM0
+; else
+; SECTION "BCD Functions", ROM0[$3A76]
+; endc
; function to print a BCD (Binary-coded decimal) number
; de = address of BCD number
diff --git a/home/print_hex.asm b/home/print_hex.asm
index 8292884..2a68c2b 100644
--- a/home/print_hex.asm
+++ b/home/print_hex.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Print Hexadecimal functions", ROM0[$3597]
-else
-SECTION "Print Hexadecimal functions", ROM0[$355B]
-endc
+; if DEBUG
+SECTION "home/print_hex.asm", ROM0
+; else
+; SECTION "Print Hexadecimal functions", ROM0[$355B]
+; endc
PrintHexBytes: ; 3597 (0:3597)
; Print c hex bytes located at de to hl
@@ -43,4 +43,4 @@ GetHexDigit: ; 35b2 (0:35b2)
ret
.hexDigitTable:
- db "0123456789ABCDEF"
+ db "0123456789ABCDEF" \ No newline at end of file
diff --git a/home/print_num.asm b/home/print_num.asm
index 3ae1c10..2a0f36f 100644
--- a/home/print_num.asm
+++ b/home/print_num.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Number Printing Functions", ROM0[$3460]
-else
-SECTION "Number Printing Functions", ROM0[$3424]
-endc
+; if DEBUG
+SECTION "home/print_num.asm", ROM0
+; else
+; SECTION "Number Printing Functions", ROM0[$3424]
+; endc
PrintNumber:: ; 3460 (0:3460)
; function to print a number
@@ -249,4 +249,4 @@ PrintNumber:: ; 3460 (0:3460)
ret z ; don't advance if leading digit is zero
.inc
inc hl
- ret
+ ret \ No newline at end of file
diff --git a/home/print_text.asm b/home/print_text.asm
index 0a17688..61cc9e1 100644
--- a/home/print_text.asm
+++ b/home/print_text.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Print Letter Delay", ROM0[$33a3]
-else
-SECTION "Print Letter Delay", ROM0[$3367]
-endc
+; if DEBUG
+SECTION "home/print_text.asm", ROM0
+; else
+; SECTION "Print Letter Delay", ROM0[$3367]
+; endc
PrintLetterDelay:: ; 33a3 (0:33a3)
ld a, [wce5f]
@@ -67,4 +67,4 @@ CopyDataUntil:: ; 33e3
ld a, l
cp c
jr nz, .asm_33e3
- ret
+ ret \ No newline at end of file
diff --git a/home/random.asm b/home/random.asm
index 5ca7c78..7c833b5 100644
--- a/home/random.asm
+++ b/home/random.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Random Number Generation", ROM0 [$3270]
-else
-SECTION "Random Number Generation", ROM0 [$3234]
-endc
+; if DEBUG
+SECTION "home/random.asm", ROM0
+; else
+; SECTION "Random Number Generation", ROM0 [$3234]
+; endc
Random::
; A simple hardware-based random number generator (RNG).
@@ -66,4 +66,4 @@ BattleRandom::
pop af
call Bankswitch
ld a, [wPredefHL + 1]
- ret
+ ret \ No newline at end of file
diff --git a/home/rst.asm b/home/rst.asm
index 884f5a9..7d087aa 100644
--- a/home/rst.asm
+++ b/home/rst.asm
@@ -1,27 +1,27 @@
; rst vectors
-SECTION "rst00", ROM0[$000]
+SECTION "home/rst.asm@rst00", ROM0
rst $38
-SECTION "rst08", ROM0[$008]
+SECTION "home/rst.asm@rst08", ROM0
rst $38
-SECTION "rst10", ROM0[$010]
+SECTION "home/rst.asm@rst10", ROM0
rst $38
-SECTION "rst18", ROM0[$018]
+SECTION "home/rst.asm@rst18", ROM0
rst $38
-SECTION "rst20", ROM0[$020]
+SECTION "home/rst.asm@rst20", ROM0
rst $38
-SECTION "rst28", ROM0[$028]
+SECTION "home/rst.asm@rst28", ROM0
rst $38
-SECTION "rst30", ROM0[$030]
+SECTION "home/rst.asm@rst30", ROM0
rst $38
-SECTION "rst38", ROM0[$038]
+SECTION "home/rst.asm@rst38", ROM0
if DEBUG && def(SILVER)
rst $38
else
diff --git a/home/rtc.asm b/home/rtc.asm
index 6179278..9a89497 100644
--- a/home/rtc.asm
+++ b/home/rtc.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Time Of Day Palettes", ROM0 [$032B]
-else
-SECTION "Time Of Day Palettes", ROM0 [$02EF]
-endc
+; if DEBUG
+SECTION "home/rtc.asm", ROM0
+; else
+; SECTION "Time Of Day Palettes", ROM0 [$02EF]
+; endc
UpdateTimeOfDayPalettes: ; 32b (0:032b)
ld a, [wVramState]
@@ -17,4 +17,3 @@ TimeOfDayPals::
UpdateTimePals:: ; 33a
callab _UpdateTimePals ; Func_8c335
ret
-
diff --git a/home/scrolling_menu.asm b/home/scrolling_menu.asm
index 23e2f1a..0c86363 100644
--- a/home/scrolling_menu.asm
+++ b/home/scrolling_menu.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Scrolling Menu", ROM0 [$3810]
-else
-SECTION "Scrolling Menu", ROM0 [$37D4]
-endc
+; if DEBUG
+SECTION "home/scrolling_menu.asm", ROM0
+; else
+; SECTION "Scrolling Menu", ROM0 [$37D4]
+; endc
Function3810::
ld e, [hl]
@@ -90,4 +90,4 @@ asm_387d: ; 00:387d
dec c
jr z, Function3872
.asm_388e: ; 00:388e
- ret
+ ret \ No newline at end of file
diff --git a/home/serial.asm b/home/serial.asm
index d51e5a6..6d4568b 100644
--- a/home/serial.asm
+++ b/home/serial.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Serial handler", ROM0[$602]
+SECTION "home/serial.asm", ROM0
Serial::
push af
@@ -344,4 +344,4 @@ Unreferenced_Function7e6::
ldh [hSerialReceive], a
ld a, (1 << rSC_ON)
ldh [rSC], a
- ret
+ ret \ No newline at end of file
diff --git a/home/sram.asm b/home/sram.asm
index 87f2335..da27c81 100644
--- a/home/sram.asm
+++ b/home/sram.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "SRAM functions", ROM0[$32A7]
-else
-SECTION "SRAM functions", ROM0[$326B]
-endc
+; if DEBUG
+SECTION "home/sram.asm", ROM0
+; else
+; SECTION "SRAM functions", ROM0[$326B]
+; endc
OpenSRAM:: ; 32a7
push af
@@ -22,4 +22,4 @@ CloseSRAM:: ; 32b7
ld [MBC3LatchClock], a
ld [MBC3SRamEnable], a
pop af
- ret
+ ret \ No newline at end of file
diff --git a/home/tables.asm b/home/tables.asm
index 02fc78a..e5d9c1e 100755
--- a/home/tables.asm
+++ b/home/tables.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "FindItemInTable", ROM0[$35F8]
+SECTION "home/tables.asm", ROM0
; find value a from table hl with row length de
; returns carry and row index b if successful
@@ -24,4 +24,4 @@ FindItemInTable: ; 00:35F8
.success
scf
- ret
+ ret \ No newline at end of file
diff --git a/home/talk_to_npc.asm b/home/talk_to_npc.asm
index 69bee3e..9874234 100644
--- a/home/talk_to_npc.asm
+++ b/home/talk_to_npc.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Unknown 3025", ROM0 [$3025]
-else
-SECTION "Unknown 3025", ROM0 [$2fe9]
-endc
+; if DEBUG
+SECTION "home/talk_to_npc.asm", ROM0
+; else
+; SECTION "Unknown 3025", ROM0 [$2fe9]
+; endc
MapDefaultText::
ld hl, .Text
@@ -358,4 +358,4 @@ SetFFInAccumulator:: ; 3240
dec a
ret
-; 3243
+; 3243 \ No newline at end of file
diff --git a/home/text.asm b/home/text.asm
index 48662e9..abca7ab 100644
--- a/home/text.asm
+++ b/home/text.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Text Printing Functions", ROM0[$0e18]
+SECTION "home/text.asm", ROM0
ClearBox:: ; 00:0e18
; Fill a c*b box at hl with blank tiles.
@@ -729,4 +729,4 @@ TextCommands:: ; 120c
dw Text_PlaySound
dw Text_PlaySound
dw Text_PlaySound
- dw Text_PlaySound
+ dw Text_PlaySound \ No newline at end of file
diff --git a/home/tilemap.asm b/home/tilemap.asm
index 6d7ff38..6348671 100644
--- a/home/tilemap.asm
+++ b/home/tilemap.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Tilemap Functions", ROM0 [$360B]
-else
-SECTION "Tilemap Functions", ROM0 [$35CF]
-endc
+; if DEBUG
+SECTION "home/tilemap.asm", ROM0
+; else
+; SECTION "Tilemap Functions", ROM0 [$35CF]
+; endc
Function360b::
call ClearSprites
@@ -67,4 +67,4 @@ Function3657:: ; 00:3657
call LoadFont
call UpdateSprites
call EnableLCD
- ret
+ ret \ No newline at end of file
diff --git a/home/tileset.asm b/home/tileset.asm
index 4512728..8a6ef44 100644
--- a/home/tileset.asm
+++ b/home/tileset.asm
@@ -1,7 +1,7 @@
include "constants.asm"
-SECTION "LoadTilesetGFX", ROM0[$2D26]
+SECTION "home/tileset.asm", ROM0
LoadTilesetGFX:: ; 2d26
call GetMapEnvironment
@@ -416,4 +416,4 @@ LoadTileset:: ; 2f48
pop bc
pop hl
- ret
+ ret \ No newline at end of file
diff --git a/home/time.asm b/home/time.asm
index d82235d..98f3827 100644
--- a/home/time.asm
+++ b/home/time.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "RTC and Time Functions", ROM0 [$042B]
+SECTION "home/time.asm", ROM0
LatchClock: ; 42b (0:042b)
ld a, 0
@@ -135,4 +135,4 @@ Function0502:: ; 0502
res 6, a
ld [MBC3RTC], a
call CloseSRAM
- ret
+ ret \ No newline at end of file
diff --git a/home/toolgear.asm b/home/toolgear.asm
index 2dfdee7..dc79b5b 100644
--- a/home/toolgear.asm
+++ b/home/toolgear.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Toolgear drawing functions", ROM0[$2018]
+SECTION "home/toolgear.asm", ROM0
; local charmap, global charmap won't apply
; see https://github.com/rednex/rgbds/issues/265#issuecomment-395229694
diff --git a/home/unknown.asm b/home/unknown.asm
index 3962377..6e540f8 100644
--- a/home/unknown.asm
+++ b/home/unknown.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Empty function", ROM0[$2F97]
-else
-SECTION "Empty function", ROM0[$2F5B]
-endc
+; if DEBUG
+SECTION "home/unknown.asm@Empty function", ROM0
+; else
+; SECTION "Empty function", ROM0[$2F5B]
+; endc
InexplicablyEmptyFunction:: ; 2f97
rept 16
@@ -18,7 +18,7 @@ endr
; 2. Give them proper names.
; 3. Move them to their own file(s).
-SECTION "Unknown functions", ROM0[$1FF4]
+SECTION "home/unknown.asm@Unknown functions", ROM0
_1FF4:: ; 1ff4
ld a, BANK(s0_a600)
@@ -39,14 +39,14 @@ _2007:: ; 2007
call CloseSRAM
ret
-SECTION "Unknown_20f8", ROM0[$20F8]
+SECTION "home/unknown.asm@Unknown_20f8", ROM0
Function20f8::
call Function1848
call Function18cc
ret
-SECTION "Unknown_094c", ROM0[$094C]
+SECTION "home/unknown.asm@Unknown_094c", ROM0
Function094c::
ldh a, [hROMBank]
@@ -57,4 +57,4 @@ Function094c::
pop af
call Bankswitch
- jp DebugMenu
+ jp DebugMenu \ No newline at end of file
diff --git a/home/unknown_388f.asm b/home/unknown_388f.asm
index 1182506..85aa781 100644
--- a/home/unknown_388f.asm
+++ b/home/unknown_388f.asm
@@ -1,10 +1,10 @@
include "constants.asm"
-if DEBUG
-SECTION "Unknown 388F", ROM0 [$388F]
-else
-SECTION "Unknown 388F", ROM0 [$3853]
-endc
+; if DEBUG
+SECTION "home/unknown_388f.asm", ROM0
+; else
+; SECTION "Unknown 388F", ROM0 [$3853]
+; endc
Function388f::
@@ -98,4 +98,4 @@ Function3920::
.text:
text "つぎは がんばるぞ!!"
- done
+ done \ No newline at end of file
diff --git a/home/util.asm b/home/util.asm
index ccc990a..f7ddc1f 100644
--- a/home/util.asm
+++ b/home/util.asm
@@ -1,10 +1,10 @@
INCLUDE "constants.asm"
-if DEBUG
-SECTION "Misc Utility Functions", ROM0[$33EF]
-else
-SECTION "Misc Utility Functions", ROM0[$33B3]
-endc
+; if DEBUG
+SECTION "home/util.asm", ROM0
+; else
+; SECTION "Misc Utility Functions", ROM0[$33B3]
+; endc
Function33ef::
; hl = src
@@ -118,4 +118,4 @@ Function3439:: ; 3439
ld a, [de]
inc de
ld [hli], a
- ret
+ ret \ No newline at end of file
diff --git a/home/vblank.asm b/home/vblank.asm
index 33bbd40..ea567ea 100644
--- a/home/vblank.asm
+++ b/home/vblank.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "VBlank handler", ROM0[$150]
+SECTION "home/vblank.asm", ROM0
VBlank:: ; 0150
push af
@@ -297,4 +297,4 @@ VBlank3:: ; 2a0 (0:2a0)
ld a, (1 << JOYPAD | 1 << SERIAL | 1 << TIMER | 1 << LCD_STAT | 1 << VBLANK)
ldh [rIE], a
ret
-; 0x317
+; 0x317 \ No newline at end of file
diff --git a/home/vcopy.asm b/home/vcopy.asm
index 91c2395..b0ad6eb 100644
--- a/home/vcopy.asm
+++ b/home/vcopy.asm
@@ -1,6 +1,6 @@
INCLUDE "constants.asm"
-SECTION "Copy Routines used by VBlank ISR", ROM0[$123a]
+SECTION "home/vcopy.asm", ROM0
RedrawRowOrColumn:: ; 123a (0:123a)
; This function redraws a BG row of height 2 or a BG column of width 2.
@@ -614,4 +614,4 @@ VBlankCopyFar:: ; 1558 (0:1558)
ld h, a
ld sp, hl
ret
-; 0x15b5
+; 0x15b5 \ No newline at end of file
diff --git a/home/window.asm b/home/window.asm
index 9e86453..178ad9b 100644
--- a/home/window.asm
+++ b/home/window.asm
@@ -1,6 +1,6 @@
include "constants.asm"
-SECTION "Window Functions", ROM0[$1fd4]
+SECTION "home/window.asm", ROM0
RefreshScreen::
call ClearWindowData
@@ -20,4 +20,4 @@ Function1fea::
call TextboxCleanup
call ClearWindowData
call InitToolgearBuffer
- ret
+ ret \ No newline at end of file