From 77e8708934c5c792b1435fa11dfe3c0a6f636a8c Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 7 Mar 2016 15:00:21 +0000 Subject: Updated README and copied latest version in. --- src/test/2 | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 src/test/2 (limited to 'src/test/2') diff --git a/src/test/2 b/src/test/2 new file mode 100644 index 0000000..53f272d --- /dev/null +++ b/src/test/2 @@ -0,0 +1,68 @@ + option +list + option list-macros,all + org $8000 + +macro1: macro + .byte "Hello World" + .text 0, $ff + endm + +hello: macro +.start + macro1 + dw start,end +.end + endm + + option charset, ascii +ascii: hello "ASC",$80 +.should_be_local_to_ascii + + option charset, zx81 +zx81: + hello "'81",$81 +.should_be_local_to_zx81 + + option charset, spectrum +speccy: hello "48K",$82 + + option charset, cbm +cbm: hello "CBM",$83 + + org $8100 + + ds 512,$ + .ds 512 + ds 512,$ff + +macro2: macro + db \1,0xe5,\2 + endm + +macro3: macro + macro2 \1,\2 + endm + +macro4: macro a + macro3 $ff,@a + endm + +macrotest: + macro4 "0x01" + macro4 "0x02" + macro4 "0x03" + MACRO4 "0x04" + macro4 "0x05" + macro4 "0x06" + + option macro-arg-char,& + +macro5: macro a + defb &a + endm + + macro5 "Hello" + macro5 "World" + +end: equ $ +end2: -- cgit v1.2.3