defs: Move .section to their proper locations
authorLukas Krickl <lukas@krickl.dev>
Sun, 19 Jan 2025 07:05:20 +0000 (08:05 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 19 Jan 2025 07:05:20 +0000 (08:05 +0100)
src/defs.s
src/main.s
src/mapram.s
src/oam.s
src/wram.s

index 601379803b64a8e8f34859f109c4dfa097a9af48..daae30180ca5f46b0e0b4d52aad978f7de42bd32 100644 (file)
@@ -1,3 +1,2 @@
 ; This file contains struct defintions
 
-.section structs
index 98b16aa5359321c4685f65dc69815a0e7bd2d5c9..9db5668c39ebc1b5161d529e75031ed4ef1a6849 100644 (file)
@@ -7,14 +7,12 @@
 #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 
index 4c9ad87cf0a5a858ce3cbe71454c750c519c9c7a..7593b79c202cfbf8d5716bab2b07765143b854ea 100644 (file)
@@ -1,9 +1,8 @@
-.section wram 
-
 #define MAPRAM 0xD000
 
   ; this RAM bank stores the current map 
 .org MAPRAM
+.section wram 
 
   ; first map 
 map0: .adv roomb_size * ROOMS_TOTAL
index 287bf2589935ba6763a32c1302f55bf8122f78f5..b71df91b352bc8dcf729a343e1f502c61a2d03cf 100644 (file)
--- a/src/oam.s
+++ b/src/oam.s
@@ -1,5 +1,3 @@
-.section oamdef
-
 ; oam memory layout 
 .se 0
 .de oamy, 1
index 92604360415d9433976e31b520241b0e8a505b72..95ede26cabbbc2232b195384379971d70dd04199 100644 (file)
@@ -1,11 +1,10 @@
-.section wram 
-
 #define WRAM 0xC000
 #define WRAMLEN 0xFFF
 
 #define STACK_BEGIN 0xDFFF
 
 .org WRAM
+.section wram 
 
 .def int OAMDMAFN = 0xFF80