Mercurial > hg > index.cgi
comparison lwasm/lwasm.h @ 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 | 6153cb49403c |
children | 58cafa61ab40 |
comparison
equal
deleted
inserted
replaced
405:4c8925f97eb5 | 406:4411a6123716 |
---|---|
52 }; | 52 }; |
53 | 53 |
54 enum lwasm_output_e | 54 enum lwasm_output_e |
55 { | 55 { |
56 OUTPUT_DECB = 0, // DECB multirecord format | 56 OUTPUT_DECB = 0, // DECB multirecord format |
57 OUTPUT_BASIC, // Color BASIC program | |
57 OUTPUT_RAW, // raw sequence of bytes | 58 OUTPUT_RAW, // raw sequence of bytes |
58 OUTPUT_OBJ, // proprietary object file format | 59 OUTPUT_OBJ, // proprietary object file format |
59 OUTPUT_RAWREL, // raw bytes where ORG causes a SEEK in the file | 60 OUTPUT_RAWREL, // raw bytes where ORG causes a SEEK in the file |
60 OUTPUT_OS9, // os9 module target | 61 OUTPUT_OS9, // os9 module target |
61 OUTPUT_SREC, // motorola SREC format | 62 OUTPUT_SREC, // motorola SREC format |