Mercurial > hg-old > index.cgi
diff lwasm/pseudo.c @ 241:31231d1c87e6
Made ORG carp if used inside a mod/emod section
author | lost |
---|---|
date | Sun, 16 Aug 2009 04:13:29 +0000 |
parents | a58f49a77441 |
children | f9f01a499525 |
line wrap: on
line diff
--- a/lwasm/pseudo.c Sun Aug 16 00:25:55 2009 +0000 +++ b/lwasm/pseudo.c Sun Aug 16 04:13:29 2009 +0000 @@ -46,6 +46,11 @@ register_error(as, l, 1, "ORG not allowed within sections"); return; } + if (as -> inmod) + { + register_error(as, l, 1, "ORG not allowed within modules"); + return; + } if (as -> passnum != 1) {