runtime/src/common/RTMisc.i3


Copyright (C) 1994, Digital Equipment Corp.
RTMisc is a private interface.

INTERFACE RTMisc;
This interface provides access to miscellaneous runtime routines.

------------------------------- 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.