Mercurial > hg > index.cgi
comparison lwasm/pseudo.c @ 406:4411a6123716
Add "basic" output format
Add "basic" output format. This outputs the code in the form of a Basic
program that installs the assembled output. If an execution address is
provided to the END pseudo operation, it will transfer control there using
the Basic EXEC command.
Thanks to Tim Lindner <tlindner@macmess.org> for the original patch. I used
it mostly as is except for a couple of minor fixes for coding style and
removing a variable declaration from inside a for() statement for
portability reasons.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 03 Mar 2016 21:04:39 -0700 |
parents | f2decd9b276d |
children | 58cafa61ab40 |
comparison
equal
deleted
inserted
replaced
405:4c8925f97eb5 | 406:4411a6123716 |
---|---|
100 if (CURPRAGMA(l, PRAGMA_M80EXT) && input_isinclude(as)) | 100 if (CURPRAGMA(l, PRAGMA_M80EXT) && input_isinclude(as)) |
101 return; /* ignore END inside includes */ | 101 return; /* ignore END inside includes */ |
102 | 102 |
103 as->endseen = 1; | 103 as->endseen = 1; |
104 | 104 |
105 if (as -> output_format != OUTPUT_DECB) | 105 if ((as -> output_format != OUTPUT_DECB) && (as -> output_format != OUTPUT_BASIC)) |
106 { | 106 { |
107 skip_operand(p); | 107 skip_operand(p); |
108 return; | 108 return; |
109 } | 109 } |
110 | 110 |