diff options
Diffstat (limited to 'lexilla/test/examples/mmixal')
| -rw-r--r-- | lexilla/test/examples/mmixal/AllStyles.mms | 148 | ||||
| -rw-r--r-- | lexilla/test/examples/mmixal/x.mms | 24 |
2 files changed, 86 insertions, 86 deletions
diff --git a/lexilla/test/examples/mmixal/AllStyles.mms b/lexilla/test/examples/mmixal/AllStyles.mms index 3c38bdcde..54de34be4 100644 --- a/lexilla/test/examples/mmixal/AllStyles.mms +++ b/lexilla/test/examples/mmixal/AllStyles.mms @@ -1,74 +1,74 @@ -% Demonstrate each possible style. Does not make sense as code.
-
-% A comment 1
-% Comment
-
-
-% Whitespace 0
-
-
-
-% Label 2
-label
-
-
-% Not Validated Opcode 3 appears to always validate to either 5 or 6
-% so is never seen on screen.
-
-
-% Division between Label and Opcode 4
-la
-
-
-% Valid Opcode 5
- TRAP
-
-
-% Invalid Opcode 6
- UNKNOWN
-
-
-% Division between Opcode and Operands 7
- LOC
-
-
-% Division of Operands 8
- LOC 0.
-
-
-% Number 9
- BYTE 0
-
-
-% Reference 10
- JMP @label
-
-
-% Char 11
- BYTE 'a'
-
-
-% String 12
- BYTE "Hello, world!"
-
-
-% Register 13
- BYTE rA
-
-
-% Hexadecimal Number 14
- BYTE #FF
-
-
-% Operator 15
- BYTE +
-
-
-% Symbol 16
- TRAP Fputs
-
-
-% Preprocessor 17
-@include a.mms
-
-
+% Demonstrate each possible style. Does not make sense as code. + +% A comment 1 +% Comment + + +% Whitespace 0 + + + +% Label 2 +label + + +% Not Validated Opcode 3 appears to always validate to either 5 or 6 +% so is never seen on screen. + + +% Division between Label and Opcode 4 +la + + +% Valid Opcode 5 + TRAP + + +% Invalid Opcode 6 + UNKNOWN + + +% Division between Opcode and Operands 7 + LOC + + +% Division of Operands 8 + LOC 0. + + +% Number 9 + BYTE 0 + + +% Reference 10 + JMP @label + + +% Char 11 + BYTE 'a' + + +% String 12 + BYTE "Hello, world!" + + +% Register 13 + BYTE rA + + +% Hexadecimal Number 14 + BYTE #FF + + +% Operator 15 + BYTE + + + +% Symbol 16 + TRAP Fputs + + +% Preprocessor 17 +@include a.mms + + diff --git a/lexilla/test/examples/mmixal/x.mms b/lexilla/test/examples/mmixal/x.mms index 361517cec..538d22163 100644 --- a/lexilla/test/examples/mmixal/x.mms +++ b/lexilla/test/examples/mmixal/x.mms @@ -1,12 +1,12 @@ -% Some example code
-
- % Set the address of the program initially to 0x100.
- LOC #100
-
-Main GETA $255,string
-
- TRAP 0,Fputs,StdOut
-
- TRAP 0,Halt,0
-
-string BYTE "Hello, world!",#a,0
+% Some example code + + % Set the address of the program initially to 0x100. + LOC #100 + +Main GETA $255,string + + TRAP 0,Fputs,StdOut + + TRAP 0,Halt,0 + +string BYTE "Hello, world!",#a,0 |
