<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I got it working :).<br>
<br>
However, It doesn't look like macro files can be listed - from the
system utilities manual:<br>
The .MACRO directive produces the entries in the library directory
(macro names). LIBR does not maintain a directory listing file for
macro libraries; you can print the ASCII input file to list the
macros in the library.<br>
<br>
I did a bunch more reading and figured out that the issue was around
inconsistent/improper use of the leading dot. Interestingly, no
diagnostic I could find was helpful in tracking this down. Y'alls
tips and hints were much more useful.<br>
<br>
So, here's how it went down (don't use a leading dot for
user-defined macros, but if you do use them, use them everywhere):<br>
<br>
<tt>.type et2.mac</tt><tt><br>
</tt><tt> .TITLE ETTYIN</tt><tt><br>
</tt><tt> .MCALL .TTYOUT,TIN</tt><tt><br>
</tt><tt><br>
</tt><tt>START: MOV #BUFFER,R1</tt><tt><br>
</tt><tt> CLR R2</tt><tt><br>
</tt><tt>INLOOP: TIN (R1)+</tt><tt><br>
</tt><tt> INC R2</tt><tt><br>
</tt><tt> CMPB #12,R0</tt><tt><br>
</tt><tt> BNE INLOOP</tt><tt><br>
</tt><tt> MOV #BUFFER,R1</tt><tt><br>
</tt><tt>OUTLOOP:.TTYOUT (R1)+</tt><tt><br>
</tt><tt> DEC R2</tt><tt><br>
</tt><tt> BEQ START</tt><tt><br>
</tt><tt> BR OUTLOOP</tt><tt><br>
</tt><tt>BUFFER: .BLKW 64.</tt><tt><br>
</tt><tt> .END START</tt><tt><br>
</tt><tt>.</tt><tt><br>
</tt><tt><br>
</tt><tt>.type tin.mac</tt><tt><br>
</tt><tt>.MACRO TIN CHAR</tt><tt><br>
</tt><tt> EMT ^O340</tt><tt><br>
</tt><tt> BCS .-2.</tt><tt><br>
</tt><tt>.IF NB <CHAR></tt><tt><br>
</tt><tt>.IF DIF <CHAR>,R0</tt><tt><br>
</tt><tt> MOVB R0,CHAR</tt><tt><br>
</tt><tt>.ENDC</tt><tt><br>
</tt><tt>.ENDC</tt><tt><br>
</tt><tt>.ENDM</tt><tt><br>
</tt><tt><br>
</tt><tt>.lib/mac/c tin tin</tt><tt><br>
</tt><tt><br>
</tt><tt>.macro et2/list/cross+tin.mlb/lib</tt><tt><br>
</tt><tt><br>
</tt><tt>.link et2</tt><tt><br>
</tt><tt><br>
</tt><tt>.run et2</tt><tt><br>
</tt><tt>THIS IS A TEST</tt><tt><br>
</tt><tt>THIS IS A TEST</tt><tt><br>
</tt><tt>^C</tt><tt><br>
</tt><tt><br>
</tt><tt>.</tt><br>
<br>
I really appreciate y'alls assistance.<br>
<br>
Thanks,<br>
<br>
Will<br>
<br>
<div class="moz-cite-prefix">On 2/5/16 12:19 PM, Timothe Litt wrote:<br>
</div>
<blockquote cite="mid:56B4E79A.2090806@ieee.org" type="cite">
<pre wrap="">Try the obvious:
lib/mac/list tin.mlb
I don't remember exactly, but I think there's a /detail or /names or
/list=names that will list the macro names in the library.
That will at least determine if MAC *should* find the macro.
On 05-Feb-16 13:05, Will Senn wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
On 2/5/16 10:20 AM, Paul Koning wrote:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">On Feb 5, 2016, at 10:48 AM, Will Senn <a class="moz-txt-link-rfc2396E" href="mailto:will.senn@gmail.com"><will.senn@gmail.com></a> wrote:
All,
A couple of questions:
...
lib/mac/c tin tin
macro et2/list/cross+tin.mlb/lib
?MACRO-E-Errors detected: 2
DK:ET2,DK:ET2/C=DK:ET2,DK:TIN.SML
</pre>
</blockquote>
<pre wrap="">Try putting the macro library earlier in the command line. I believe
MACRO processes command arguments as it encounters them, so here
you're asking it to assemble ET2 before you've given it the macro
library it needs to understand the .MCALL.
paul
</pre>
</blockquote>
<pre wrap="">I tried the command with the filespecs switched with the same result:
.macro tin.MLB/lib+et2/list/cross
?MACRO-E-Errors detected: 2
DK:TIN,DK:ET2/C=DK:TIN.MLB/M,DK:ET2
And then I ran it via run macro:
.run macro
*ET2.OBJ,ET2.LST,ET2.LST=TIN.MLB/M,ET2
?MACRO-E-Errors detected: 2
ET2.OBJ,ET2.LST,ET2.LST=TIN.MLB/M,ET2
*
And then I edited the macro file to include a LIBRARY directive:
.TITLE ETTYIN
.LIBRARY /TIN.MLB/
.MCALL .TTYOUT,.TIN
START: MOV #BUFFER,R1
CLR R2
INLOOP: .TIN (R1)+
INC R2
CMPB #12,R0
BNE INLOOP
MOV #BUFFER,R1
OUTLOOP:.TTYOUT (R1)+
DEC R2
BEQ START
BR OUTLOOP
BUFFER: .BLKW 64.
.END START
and recompiled:
.macro et2/list/cross
?MACRO-E-Errors detected: 2
DK:ET2,DK:ET2/C=DK:ET2
It looks to me like it is finding the file, but not "seeing" the macro
definition?
Thanks,
Will
_______________________________________________
Simh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Simh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></pre>
</blockquote>
<br>
</body>
</html>