aboutsummaryrefslogtreecommitdiff
path: root/src/test/2
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-03-07 15:00:21 +0000
committerIan C <ianc@noddybox.co.uk>2016-03-07 15:00:21 +0000
commit77e8708934c5c792b1435fa11dfe3c0a6f636a8c (patch)
tree8c68ecddaf2c2c0730ba310b8d1b9e0f1bd16132 /src/test/2
parent6e9c9c9205d6eec1ff1cfb3fa407c6714854145a (diff)
Updated README and copied latest version in.
Diffstat (limited to 'src/test/2')
-rw-r--r--src/test/268
1 files changed, 68 insertions, 0 deletions
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: