Cannot start a new section that's already on the stack

This is only relevant for FRAGMENT or UNION sections, since
normal ones would fail with "Section already defined previously".

Fixes #730
This commit is contained in:
Rangi
2021-02-12 15:54:15 -05:00
committed by Eldred Habert
parent a919f922a1
commit dddff0f450
4 changed files with 15 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
SECTION FRAGMENT "A", ROM0
db 1
PUSHS
SECTION FRAGMENT "A", ROM0
db 2
POPS
db 3

View File

@@ -0,0 +1,2 @@
FATAL: new-pushed-section.asm(4):
Section 'A' is already on the stack

View File