From c80c87b2d45cbae186d2a05462940fe5860d222b Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sat, 10 Nov 2018 16:55:08 +0100 Subject: [PATCH] Test another weird delimiter: .ASCIZ && --- tests/test-asciz.lst.ok | 38 ++++++++++++++++++++------------------ tests/test-asciz.mac | 1 + 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/tests/test-asciz.lst.ok b/tests/test-asciz.lst.ok index ea9e9ad..1492517 100644 --- a/tests/test-asciz.lst.ok +++ b/tests/test-asciz.lst.ok @@ -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) diff --git a/tests/test-asciz.mac b/tests/test-asciz.mac index 9faeabd..2b92c78 100644 --- a/tests/test-asciz.mac +++ b/tests/test-asciz.mac @@ -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