Fix segfaults when using PC outside a section

This commit is contained in:
ISSOtm
2020-03-27 11:37:29 +01:00
parent 06fe27c516
commit 84cd9f2db9
8 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1 @@
assert @ || 1

View File

@@ -0,0 +1,3 @@
ERROR: assert@-no-sect.asm(1):
PC has no value outside a section
error: Assembly aborted (1 errors)!

View File

2
test/asm/if@-no-sect.asm Normal file
View File

@@ -0,0 +1,2 @@
if {@}
endc

3
test/asm/if@-no-sect.err Normal file
View File

@@ -0,0 +1,3 @@
ERROR: if@-no-sect.asm(1):
PC has no value outside a section
error: Assembly aborted (1 errors)!

0
test/asm/if@-no-sect.out Normal file
View File