[Info-vax] MACRO BUG_CHECK help

Brian Schenkenberger mail at SendSpamHere.ORG
Thu Jul 6 11:57:25 EDT 2023


On 2023-07-06 11:07:25 +0000, issinoho said:

> Hi all, I have some legacy (VAX) MACRO code which kills the system 
> using a BUG_CHECK operation. On porting to X86 I get a compilation 
> error.
> Please don't concentrate on why or how this is doing what it's doing, 
> I'm simply helping support this code as-is.
> 
> Code:
>         .title  fatal
>         .entry  fatal,^m<>
>         $cmkrnl_s       routin=kill_system
>         ret
>         .entry  kill_system,^m<>
>         BUG_CHECK       1000,FATAL
>         .end
> 
> Error:
> MACRO /NOLIST/OBJECT=FATAL FATAL.MAR
> 
>         BUG_CHECK       1000,FATAL
> ^
> %XMAC-E-UNRECSTMT, unrecognized statement
> at line number 6 in file USERDEV:[builds.000.source]fatal.mar;2
> 
>         BUG_CHECK       1000,FATAL
> ^
> %XMAC-E-PREVERROR, previous errors prevent further analysis
> at line number 6 in file USERDEV:[builds.000.source]fatal.mar;2
> 
> Any help with this would be appreciated. TYIA.

Add:

	.LIBRARY	"SYS$LIBRARY:LIB.MLB"

to the Macro source.




More information about the Info-vax mailing list