changeset 241:31231d1c87e6

Made ORG carp if used inside a mod/emod section
author lost
date Sun, 16 Aug 2009 04:13:29 +0000
parents b43e3e23583c
children 848d55b181f0 3b793ba7a6c6
files lwasm/pseudo.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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)
 	{