Files
open-simh.simtools/crossassemblers/macro11/tests/test-include.lst.ok
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

63 lines
3.0 KiB
Plaintext

1 ;;;;;
2 ;
3 ; Test some delimiters for the .INCLUDE directive
4 ;
5
6 .include "incl.mac"
1 ;;;;;
2 ;
3 ; file to be included
4
5 000000 000001 .word 1 ; to show it is included
5
7 .include /incl.mac/
1 ;;;;;
2 ;
3 ; file to be included
4
5 000002 000001 .word 1 ; to show it is included
5
8 .include \incl.mac\
1 ;;;;;
2 ;
3 ; file to be included
4
5 000004 000001 .word 1 ; to show it is included
5
9 .include ?incl.mac?
1 ;;;;;
2 ;
3 ; file to be included
4
5 000006 000001 .word 1 ; to show it is included
5
10 .include >incl.mac>
1 ;;;;;
2 ;
3 ; file to be included
4
5 000010 000001 .word 1 ; to show it is included
5
11
12 ; these are errors: (in MACRO V05.05, some terminate the assembler)
13
test-include.mac:14: ***ERROR Bad .INCLUDE file name
14 .include <incl.mac>
test-include.mac:15: ***ERROR Bad .INCLUDE file name
15 .include <incl.mac<
16 .include =incl.mac= ; looks like assignment
test-include.mac:17: ***ERROR Invalid expression
17 000012 000000G 000000 .include :incl.mac: ; looks like a label
17
Symbol table
. ******R 001 .INCLU 000012R 001 INCL.M=****** GX
Program sections:
. ABS. 000000 000 (RW,I,GBL,ABS,OVR,NOSAV)
000016 001 (RW,I,LCL,REL,CON,NOSAV)