From cc7a4b5aa751d50c4fdeae0a1335b3a5bf801ae1 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 30 Apr 2020 15:41:44 +1000 Subject: Add tests for mmixal lexer. --- lexilla/test/examples/mmixal/x.mms.styled | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lexilla/test/examples/mmixal/x.mms.styled (limited to 'lexilla/test/examples/mmixal/x.mms.styled') diff --git a/lexilla/test/examples/mmixal/x.mms.styled b/lexilla/test/examples/mmixal/x.mms.styled new file mode 100644 index 000000000..7221e37f9 --- /dev/null +++ b/lexilla/test/examples/mmixal/x.mms.styled @@ -0,0 +1,12 @@ +{1}% Some example code +{0} + {1}% Set the address of the program initially to 0x100. +{0} {5}LOC{7} {14}#100{1} +{0} +{2}Main{4} {5}GETA{7} {13}$255{15},{10}string{1} +{0} + {5}TRAP{7} {9}0{15},{16}Fputs{15},{16}StdOut{1} +{0} + {5}TRAP{7} {9}0{15},{10}Halt{15},{9}0{1} +{0} +{2}string{4} {5}BYTE{7} {12}"Hello, world!"{15},{14}#a{15},{9}0{1} -- cgit v1.2.3