open-simh.simtools/tests/test-macro-comma.lst.ok
Olaf Seibert 015c8bee23 Prepent register label values with a % in symbol table.
This changes the layout of all the regression test listings...
2021-01-23 16:37:15 +01:00

37 lines
1.8 KiB
Plaintext

1 .macro tstarg a1,a2,a3,a4
2 .narg label
3 .endm
4
5 000000 start: tstarg ; 0 args
1 000000 .narg label
6 000000 tstarg 123 ; 1 arg
1 000001 .narg label
7 000000 tstarg 1, ; 2 args
1 000002 .narg label
8 000000 tstarg ,2 ; 2 args
1 000002 .narg label
9 000000 tstarg , ; 2 args
1 000002 .narg label
10 000000 tstarg ,, ; 3 args
1 000003 .narg label
11 000000 tstarg 1,, ; 3 args
1 000003 .narg label
12 000000 tstarg ,,3 ; 3 args
1 000003 .narg label
13 000000 tstarg 1,,3 ; 3 args
1 000003 .narg label
14 000000 tstarg 1,2,3 ; 3 args
1 000003 .narg label
14
Symbol table
. ******R 001 LABEL = 000003 START 000000R 001
Program sections:
. ABS. 000000 000 (RW,I,GBL,ABS,OVR,NOSAV)
000000 001 (RW,I,LCL,REL,CON,NOSAV)