open-simh.simtools/tests/test-asciz.mac
Olaf Seibert 137a9db671 More tests. Refine string delimiter test for .ASCII a bit.
Make the delimiters for .INCLUDE and .LIBRARY accept the same
delimiters (= is not disallowed, it just makes the line look like
an assignment).
2015-06-04 12:11:14 +02:00

21 lines
807 B
Plaintext

;;;;;
;
; Test delimiters of .ASCII and .ASCIZ
CR = 13.
LF = 10.
SOH = 1
.asciz <cr><lf>/<SOH>/ ; 2 bytes and a string
.asciz /<cr><lf><SOH>/ ; only a string
.asciz |<cr><lf><SOH>| ; the same string
.ascii <cr><lf><SOH> ; 3 bytes
.asciz ;ABC;/DEF/ ; ABCDEF, not recommended practice
.asciz /ABC/;DEF; ; ABC, not recommended practice
.asciz /ABC/=DEF= ; ABCDEF, not recommended practice
.asciz =DEF= ; syntax error: assignment
.asciz =###= ; syntax error: assignment
.asciz :SOH: ; syntax error: colon not allowed
.asciz :###: ; syntax error: colon not allowed