Add test for .MCALL (LIB)MACRO.

This commit is contained in:
Olaf Seibert 2021-01-20 21:26:22 +01:00
parent 2ac8b7eb5e
commit 3ef63b592e
4 changed files with 50 additions and 0 deletions

View File

@ -22,6 +22,7 @@ TESTS="test-asciz \
test-listing \
test-locals \
test-macro-comma \
test-mcall-file \
test-prec \
test-psect \
test-rad50 \

7
tests/mafile.mac Normal file
View File

@ -0,0 +1,7 @@
;;;;;
;
; This macro is found automatically by .MCALL MAFILE
;
.macro mafile
.asciz /This macro definition comes from a file./
.endm

View File

@ -0,0 +1,34 @@
1 ;;;;;
2 ;
3 ; Test using .MCALL and pulling in the macro definition from a file.
4 ;
5
6 .mcall (ignored)mafile
7
8 000000 mafile
1 000000 124 150 151 .asciz /This macro definition comes from a file./
000003 163 040 155
000006 141 143 162
000011 157 040 144
000014 145 146 151
000017 156 151 164
000022 151 157 156
000025 040 143 157
000030 155 145 163
000033 040 146 162
000036 157 155 040
000041 141 040 146
000044 151 154 145
000047 056 000
8
Symbol table
. ******R 001
Program sections:
. ABS. 000000 000 (RW,I,GBL,ABS,OVR,NOSAV)
000051 001 (RW,I,LCL,REL,CON,NOSAV)

View File

@ -0,0 +1,8 @@
;;;;;
;
; Test using .MCALL and pulling in the macro definition from a file.
;
.mcall (ignored)mafile
mafile