mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 20:25:34 +00:00
1 parent
1d9cc01ae1
commit
063a22ddf9
4 files changed
+11
No files matched your search
@@ -339,6 +339,9 @@ void out_SetLoadSection(char const *name, uint32_t type, uint32_t org,
|
||||
if (currentLoadSection)
|
||||
fatalerror("`LOAD` blocks cannot be nested\n");
|
||||
|
||||
if (sect_HasData(type))
|
||||
error("`LOAD` blocks cannot create a ROM section\n");
|
||||
|
||||
struct Section *sect = getSection(name, type, org, attribs, false);
|
||||
|
||||
loadOffset = curOffset;
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
SECTION "Hello", ROM0
|
||||
ld a, 1
|
||||
LOAD "Wello", ROM0
|
||||
ld a, 2
|
||||
ENDL
|
||||
@@ -0,0 +1,3 @@
|
||||
ERROR: load-rom.asm(3):
|
||||
`LOAD` blocks cannot create a ROM section
|
||||
error: Assembly aborted (1 errors)!
|
||||
Whitespace-only changes.
Reference in new issue
Block a user