[Info-vax] iomacs.mlb

GC cornelius at eisner.decus.org.INVALID
Sun Jan 27 00:27:29 EST 2019


Emilio Moreno <emilioaxp at gmail.com> wrote:
> 
> This is what I get when compiling.

How hard could this be?  Just wing it!

Suggestions follow below.

>         print_w <>,jnum(r5),pri(r5)
> ^
> %AMAC-E-UNRECSTMT, unrecognized statement
> at line number 65 in file 

Tempted to think this is "print word", but I won't jump to
that conclusion yet.  Try replacing this by two invocations
of a subroutine (or macro) that uses, say, $FAO and
lib$put_output to print a numeric value (we're ignoring
the first (empty) macro arg).

E.g.,

 cvtwl jnum(r5),-(sp)     ; use a pushl if long
 calls #1,print_longword  ; You'll have to write this one
 cvtwl pri(r5),-(sp)
 calls #1,print_longword

>         print_l <Enter job number>
> ^
> %AMAC-E-UNRECSTMT, unrecognized statement
> at line number 84 in file 

I'll guess this could be replaced by invocation of a
macro we'll call print_literal.  It should allocate
(via .ascid) the supplied literal string in a data
.psect, then print it with, say, lib$put_output.

>         INIT_IO
> ^
> %AMAC-E-UNRECSTMT, unrecognized statement
> at line number 111 in file

No-op this one.
 
> menu:   print_l <1. Insert new node.>
> .....^
> %AMAC-E-UNRECSTMT, unrecognized statement
> at line number 124 in file 

See above.

> 
>         EXIT
> ^
> %AMAC-E-UNRECSTMT, unrecognized statement
> at line number 159 in file 

Try 

 $EXIT_S

or

 RET
 
>         .end final
> ^
> %AMAC-E-PREVERROR, previous errors prevent further analysis
> at line number 161 in file

[likely errors and typos above - don't do much MACRO any more]

George



More information about the Info-vax mailing list