diff lwasm/main.c @ 236:a58f49a77441

Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
author lost
date Fri, 14 Aug 2009 03:22:26 +0000
parents 0df2a39a268c
children e27279180a73
line wrap: on
line diff
--- a/lwasm/main.c	Fri Jun 12 05:25:41 2009 +0000
+++ b/lwasm/main.c	Fri Aug 14 03:22:26 2009 +0000
@@ -94,6 +94,11 @@
 			as -> outformat = OUTPUT_RAW;
 		else if (!strcasecmp(arg, "obj"))
 			as -> outformat = OUTPUT_OBJ;
+		else if (!strcasecmp(arg, "os9"))
+		{
+			as -> pragmas |= PRAGMA_DOLLARNOTLOCAL;
+			as -> outformat = OUTPUT_OS9;
+		}
 		else
 		{
 			fprintf(stderr, "Invalid output format: %s\n", arg);
@@ -146,7 +151,7 @@
 	{ "debug",		'd',	0,		0,
 				"Set debug mode"},
 	{ "format",		'f',	"TYPE",	0,
-				"Select output format: decb, raw, obj"},
+				"Select output format: decb, raw, obj, os9"},
 	{ "list",		'l',	"FILE",	OPTION_ARG_OPTIONAL,
 				"Generate list [to FILE]"},
 	{ "decb",		'b',	0,		0,