[Info-vax] MACRO BUG_CHECK help

Johnny Billquist bqt at softjar.se
Thu Jul 6 07:33:12 EDT 2023


On 2023-07-06 13:07, issinoho wrote:
> 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.

Uh? Seems like the compiler just don't recognize "BUG_CHECK". Which 
isn't that strange, as it isn't an instruction, and it isn't a known 
MACRO-32 operation. My guess it that it's a macro. So you need to 
include the library that defines the macro...
Either on the command line, or (I assume it exists in MACRO-32), a 
".LIBRARY /file/" statement.

   Johnny




More information about the Info-vax mailing list