ref: ec5a1bc71f66d133dff23784ff97ca627bcd68b6
parent: 9742fa731c40336001cdd47b8401ee2c657f9867
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Sep 24 06:26:02 EDT 2020
Fix incorrect obj file documentation Bit 7 of section types was actually documented in the symbol type Bit 6 of section types was not documented at all
--- a/src/rgbds.5
+++ b/src/rgbds.5
@@ -48,8 +48,6 @@
BYTE Type ; 0 = LOCAL symbol only used in this file.
; 1 = IMPORT this symbol from elsewhere
; 2 = EXPORT this symbol to other objects.
- ; Bit 7 is independent from the above value, and
- ; encodes whether the section is unionized
IF (Type & 0x7F) != 1 ; If symbol is defined in this object file.
@@ -84,6 +82,10 @@
; 5 = WRAMX
; 6 = SRAM
; 7 = OAM
+ ; Bits 7 and 6 are independent from the above value:
+ ; Bit 7 iencodes whether the section is unionized
+ ; Bit 6 encodes whether the section is a fragment
+ ; Bits 6 and 7 may not be both set at the same time!
LONG Org ; Address to fix this section at. -1 if the linker should
; decide (floating address).