Allow LOAD FRAGMENT (#1552)

This was implemented in #736 but removed after discussion in #869.

Fixes #1537
This commit is contained in:
Sylvie
2024-10-24 19:45:44 -04:00
committed by GitHub
parent 0d3980d039
commit 5efd303b7f
24 changed files with 170 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
SECTION "main", ROM0
LOAD FRAGMENT "test", SRAM
ENDL
; The RPN patch for 'jr Label' in section "alt" refers to section "test",
; but the object file puts section "test" after section "alt".
; This case needs to be handled when identifying patches' PC sections.
SECTION "alt", ROM0
LOAD FRAGMENT "test", SRAM
jr Label
Label:
ENDL