Files
open-simh.simtools/crossassemblers/macro11/tests/test-asciz.mac
Olaf Seibert 404a7e726d Add 'crossassemblers/macro11/' from commit '2a14ffe2519589011ffc4050d5d4fd6591fb4c3c'
git-subtree-dir: crossassemblers/macro11
git-subtree-mainline: fc2c8875ca
git-subtree-split: 2a14ffe251

command was: git subtree add --prefix=crossassemblers/macro11 git://github.com/Rhialto/macro11.git master
2016-02-21 11:00:41 +01:00

23 lines
953 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
.asciz ^###^ ; previous versions of this macro11
; used ^/.../ quoting as an extension; however this should be ^...^.