58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
|
0 400 400 ; Enumerate all styles: 0 to 15 except for 11(comment block) which is not yet implemented.
|
||
|
0 400 400 ; This is not a viable source file, it just illustrates the different states in isolation.
|
||
|
1 400 400
|
||
|
0 400 400 ; comment=1
|
||
|
0 400 400 ; Comment
|
||
|
1 400 400
|
||
|
0 400 400 ; whitespace=0
|
||
|
0 400 400 ; w
|
||
|
1 400 400
|
||
|
0 400 400 ; number=2
|
||
|
0 400 400 11
|
||
|
1 400 400
|
||
|
0 400 400 ; string=3
|
||
|
0 400 400 "String"
|
||
|
1 400 400
|
||
|
0 400 400 ; operator=4
|
||
|
0 400 400 +
|
||
|
1 400 400
|
||
|
0 400 400 ; identifier=5
|
||
|
0 400 400 identifier
|
||
|
1 400 400
|
||
|
0 400 400 ; CPU instruction=6
|
||
|
0 400 400 add
|
||
|
1 400 400
|
||
|
0 400 400 ; math Instruction=7
|
||
|
0 400 400 fadd
|
||
|
1 400 400
|
||
|
0 400 400 ; register=8
|
||
|
0 400 400 ECX
|
||
|
1 400 400
|
||
|
0 400 400 ; directive=9
|
||
|
0 400 400 section
|
||
|
1 400 400
|
||
|
0 400 400 ; directive operand=10
|
||
|
0 400 400 rel
|
||
|
1 400 400
|
||
|
0 400 400 ; comment block=11 is for future expansion
|
||
|
1 400 400
|
||
|
0 400 400 ; character=12
|
||
|
0 400 400 'character'
|
||
|
1 400 400
|
||
|
0 400 400 ; string EOL=13
|
||
|
0 400 400 "no line end
|
||
|
1 400 400
|
||
|
0 400 400 ; extended instruction=14
|
||
|
0 400 400 movq
|
||
|
1 400 400
|
||
|
0 400 400 ; comment directive=15
|
||
|
0 400 400 comment ~ A multiple-line
|
||
|
0 400 400 comment directive~
|
||
|
1 400 400
|
||
|
0 400 400 ; test for folding from segment to ends
|
||
|
2 400 401 + data segment
|
||
|
0 401 401 | hw db "HW!"
|
||
|
0 401 400 | data ends
|
||
|
1 400 400
|
||
|
0 400 400 ;end
|
||
|
1 400 400
|