diff --git a/tests/RunTests b/tests/RunTests index d14a063..6b99205 100755 --- a/tests/RunTests +++ b/tests/RunTests @@ -22,6 +22,7 @@ TESTS="test-asciz \ test-listing \ test-locals \ test-macro-comma \ + test-mcall-file \ test-prec \ test-psect \ test-rad50 \ diff --git a/tests/mafile.mac b/tests/mafile.mac new file mode 100644 index 0000000..babcf55 --- /dev/null +++ b/tests/mafile.mac @@ -0,0 +1,7 @@ +;;;;; +; +; This macro is found automatically by .MCALL MAFILE +; + .macro mafile + .asciz /This macro definition comes from a file./ + .endm diff --git a/tests/test-mcall-file.lst.ok b/tests/test-mcall-file.lst.ok new file mode 100644 index 0000000..fa650e5 --- /dev/null +++ b/tests/test-mcall-file.lst.ok @@ -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) diff --git a/tests/test-mcall-file.mac b/tests/test-mcall-file.mac new file mode 100644 index 0000000..6708b49 --- /dev/null +++ b/tests/test-mcall-file.mac @@ -0,0 +1,8 @@ +;;;;; +; +; Test using .MCALL and pulling in the macro definition from a file. +; + + .mcall (ignored)mafile + + mafile