Copyright (C) 1994, Digital Equipment Corp.
RTMisc
is a private interface.
INTERFACEThis interface provides access to miscellaneous runtime routines.RTMisc ;
------------------------------- byte copying ------------------------------
PROCEDURE Copy (src, dest: ADDRESS; len: INTEGER);
copy len bytes from src to dest
PROCEDURE Zero (dest: ADDRESS; len: INTEGER);
zero len bytes begining at dest
------------------------------- rounded arithmetic ------------------------
PROCEDURE Align (a: ADDRESS; y: INTEGER): ADDRESS;
return the smallest integer greater or equal to x that is a multiple of y
PROCEDURE Upper (x, y: INTEGER): INTEGER;
return the smallest integer greater or equal to x that is a multiple of y
------------------------------- runtime error reporting -------------------
PROCEDURE FatalError (file: TEXT; line: INTEGER; a, b, c: TEXT := NIL);
report an error
PROCEDURE FatalErrorS (file: ADDRESS; line: INTEGER; a, b, c: TEXT := NIL);
report an error (file = C-style null-terminated string)
PROCEDURE FatalErrorI (msg: TEXT := NIL; i: INTEGER);
report an error with an integer argument
PROCEDURE FatalErrorPC (pc: INTEGER; a, b, c: TEXT := NIL);
report an error at the given PC
END RTMisc.