shithub: rgbds

Download patch

ref: 032e698f463251b61e56fc361184a5c6a58f3ef0
parent: 63103c050d9cb31c43a0e979971df9b3a79bfab9
author: Ben10do <[email protected]>
date: Tue Apr 4 21:05:08 EDT 2017

Update the object file documentation

Updates the object file documentation in mylink.h to match the newest object file format.

--- a/include/asm/mylink.h
+++ b/include/asm/mylink.h
@@ -1,7 +1,7 @@
 #ifndef RGBDS_ASM_LINK_H
 #define RGBDS_ASM_LINK_H
 
-/* RGB0 .obj format:
+/* RGB4 .o format:
  *
  * Header
  * Symbols
@@ -8,7 +8,7 @@
  * Sections
  *
  * Header:
- * "RGB0"
+ * "RGB4"
  * LONG NumberOfSymbols
  * LONG NumberOfSections
  *
@@ -18,7 +18,7 @@
  * Symbol:
  * char Name (NULL terminated)
  * char nType
- * if( nType!=SYM_IMPORT )
+ * if (nType != SYM_IMPORT)
  * {
  *		LONG SectionID
  *		LONG Offset
@@ -28,9 +28,13 @@
  * Section[NumberOfSections]
  *
  * Section:
+ * char SectionName (NULL-terminated)
  * LONG SizeInBytes
  * char Type
- * if( Type!=WRAM0 )
+ * LONG OrgPosition
+ * LONG Bank
+ * LONG Alignment
+ * if (Type == ROM0 || Type == ROMX)
  * {
  *		char Data[SizeInBytes]
  *		Patches