errn$

errn$ label, [bias]

The errn$ macro subtracts the offset of the label parameter from the offset of the location counter and then adds the bias parameter to the result. If this result is not zero, an error message is displayed.

Parameters

label

Specifies a label corresponding to a memory location.

bias

Specifies a signed bias value. A plus or minus sign is required. This parameter is optional.

Examples

The following example demonstrates the usage of the errn$ macro:

;   end of previous code
     errn$   function1
function1:

If a function that was originally located immediately after another piece of code is ever moved, the errn$ macro displays an error message.