Test another weird delimiter: .ASCIZ &&

This commit is contained in:
Olaf Seibert 2018-11-10 16:55:08 +01:00
parent 78fb685e59
commit c80c87b2d4
2 changed files with 21 additions and 18 deletions

View File

@ -29,32 +29,34 @@
16 000062 101 102 103 .asciz /ABC/=DEF= ; ABCDEF, not recommended practice
000065 104 105 106
000070 000
test-asciz.mac:17: ***ERROR Complex expression cannot be assigned to a symbol
17 .asciz =DEF= ; syntax error: assignment
17 000071 043 043 043 .asciz &###& ; another weird delimiter
000074 000
test-asciz.mac:18: ***ERROR Complex expression cannot be assigned to a symbol
18 .asciz =###= ; syntax error: assignment
test-asciz.mac:19: ***ERROR .WORD on odd boundary
test-asciz.mac:19: ***ERROR Invalid expression
19 000071 000 000001 000000 .asciz :SOH: ; syntax error: colon not allowed
test-asciz.mac:20: ***ERROR Illegal symbol definition .ASCIZ
18 .asciz =DEF= ; syntax error: assignment
test-asciz.mac:19: ***ERROR Complex expression cannot be assigned to a symbol
19 .asciz =###= ; syntax error: assignment
test-asciz.mac:20: ***ERROR .WORD on odd boundary
test-asciz.mac:20: ***ERROR Invalid expression
test-asciz.mac:20: ***ERROR Invalid expression
test-asciz.mac:20: ***ERROR Invalid expression
test-asciz.mac:20: ***ERROR Invalid expression
20 000076 000000 000000 000000 .asciz :###: ; syntax error: colon not allowed
000104 000000
21 000106 043 043 043 .asciz ^###^ ; previous versions of this macro11
000111 000
22 ; used ^/.../ quoting as an extension; however this should be ^...^.
22
20 000075 000 000001 000000 .asciz :SOH: ; syntax error: colon not allowed
test-asciz.mac:21: ***ERROR Illegal symbol definition .ASCIZ
test-asciz.mac:21: ***ERROR Invalid expression
test-asciz.mac:21: ***ERROR Invalid expression
test-asciz.mac:21: ***ERROR Invalid expression
test-asciz.mac:21: ***ERROR Invalid expression
21 000102 000000 000000 000000 .asciz :###: ; syntax error: colon not allowed
000110 000000
22 000112 043 043 043 .asciz ^###^ ; previous versions of this macro11
000115 000
23 ; used ^/.../ quoting as an extension; however this should be ^...^.
23
Symbol table
. ******R 001 .ASCIZ 000071R 001 CR =000015 LF =000012 SOH =000001
. ******R 001 .ASCIZ 000075R 001 CR =000015 LF =000012 SOH =000001
Program sections:
. ABS. 000000 000 (RW,I,GBL,ABS,OVR,NOSAV)
000112 001 (RW,I,LCL,REL,CON,NOSAV)
000116 001 (RW,I,LCL,REL,CON,NOSAV)

View File

@ -14,6 +14,7 @@ SOH = 1
.asciz ;ABC;/DEF/ ; ABCDEF, not recommended practice
.asciz /ABC/;DEF; ; ABC, not recommended practice
.asciz /ABC/=DEF= ; ABCDEF, not recommended practice
.asciz &###& ; another weird delimiter
.asciz =DEF= ; syntax error: assignment
.asciz =###= ; syntax error: assignment
.asciz :SOH: ; syntax error: colon not allowed