-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
170 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,29 @@ | ||
SECTION "A", ROM0 | ||
AData:: | ||
LOAD FRAGMENT "RAM", WRAM0 | ||
AMem:: | ||
db 0, 1, 2 | ||
AMemEnd:: | ||
ENDL | ||
ADataEnd:: | ||
dw AMem | ||
|
||
SECTION "B", ROM0 | ||
BData:: | ||
LOAD FRAGMENT "RAM", WRAM0 | ||
BMem:: | ||
db 3, 4, 5, 6, 7 | ||
BMemEnd:: | ||
ENDL | ||
BDataEnd:: | ||
dw BMem | ||
|
||
SECTION "C", ROM0 | ||
CData:: | ||
LOAD FRAGMENT "RAM", WRAM0 | ||
CMem:: | ||
db 8, 9 | ||
CMemEnd:: | ||
ENDL | ||
CDataEnd:: | ||
dw CMem |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SECTION "Test", ROM0[0] | ||
AA: db 1 | ||
LOAD FRAGMENT "RAM section", WRAM0[$c000] | ||
BB: db 2 | ||
ENDL | ||
CC: db 3 | ||
LOAD FRAGMENT "RAM section", WRAM0 | ||
DD: db 4 | ||
ENDL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
; File generated by rgblink | ||
00:0000 AA | ||
00:0002 CC | ||
00:c000 BB | ||
00:c001 DD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SECTION "main", ROM0 | ||
LOAD FRAGMENT "test", SRAM | ||
db 0 | ||
ENDL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SECTION "SECTION2", ROM0 | ||
LOAD FRAGMENT "test", SRAM | ||
jr Label | ||
Label: | ||
dw Label | ||
ENDL |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SECTION FRAGMENT "rom", ROM0 | ||
Part1:: | ||
LOAD FRAGMENT "ram", WRAM0 | ||
wPart1:: | ||
jr wPart1 | ||
jr wPart3 | ||
ENDL | ||
Part1End:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SECTION FRAGMENT "rom", ROM0 | ||
Part2:: | ||
db "Hello world!" | ||
Part2End:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SECTION FRAGMENT "rom", ROM0 | ||
Part3:: | ||
LOAD FRAGMENT "ram", WRAM0 | ||
wPart3:: | ||
jr wPart1 | ||
jr wPart3 | ||
ENDL | ||
Part3End:: |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SUMMARY: | ||
ROM0: 20 bytes used / 16364 free | ||
WRAM0: 8 bytes used / 4088 free | ||
|
||
ROM0 bank #0: | ||
SECTION: $0000-$0013 ($0014 bytes) ["rom"] | ||
$0000 = Part1 | ||
$0004 = Part1End | ||
; Next fragment | ||
$0010 = Part3 | ||
$0014 = Part3End | ||
; Next fragment | ||
$0004 = Part2 | ||
$0010 = Part2End | ||
EMPTY: $0014-$3fff ($3fec bytes) | ||
TOTAL EMPTY: $3fec bytes | ||
|
||
WRAM0 bank #0: | ||
SECTION: $c000-$c007 ($0008 bytes) ["ram"] | ||
$c000 = wPart1 | ||
; Next fragment | ||
$c004 = wPart3 | ||
EMPTY: $c008-$cfff ($0ff8 bytes) | ||
TOTAL EMPTY: $0ff8 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
; File generated by rgblink | ||
00:0000 Part1 | ||
00:0004 Part1End | ||
00:0004 Part2 | ||
00:0010 Part3 | ||
00:0010 Part2End | ||
00:0014 Part3End | ||
00:c000 wPart1 | ||
00:c004 wPart3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SECTION FRAGMENT "output", ROM0 | ||
LOAD FRAGMENT "loaded", SRAM | ||
ds 128 | ||
ENDL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SECTION FRAGMENT "output", ROM0 | ||
LOAD FRAGMENT "loaded", SRAM | ||
label: | ||
jr nz, label2 | ||
label2: | ||
ENDL |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters