include debug.inc
Trace_Out String, nocrlf
Trace_Out String, level
Writes the specified string to the debugging device, but continues execution. Compare the Debug_Out macro, which stops execution if a debugger is attached.
The assembler generates code for the macro only if the DEBUG constant is defined before including the DEBUG.INC file.
There are additional macros Trace_OutX, where X is a conditional jump type, i.e., something that can follow the letter j to form a conditional jump instruction. In such case, the trace-out is performed only if the condition is satisfied.
The following example writes a string to the debugging device:
Trace_Out "Element not found"
The following example writes a string containing the value of the AX register to the debugging device if the zero flag is set:
Trace_OutZ "AX value is #AX"
Out_Debug_String