When - HP B1476 68020 User Manual

Debugger/emulator
Table of Contents

Advertisement

Chapter 15: Predefined Macros

when

when
Function
Break when expression is true
Synopsis
char when (boolean)
int boolean;
Description
The when macro returns a zero when boolean is nonzero; it returns a one
when boolean is zero. This macro is used with the Breakpt Instr command.
When used with this command, program execution will halt when the stated
expression is true, and will continue when the stated expression is false. Any C
expression resulting in a value may be used.
Example
Breakpt Instr strcpy;when(*str==0)
This command sets a breakpoint at the entry point of the routine strcpy. Each
time the breakpoint occurs, the when macro is executed. The macro causes
program execution to stop when the byte pointed to by str is zero.
589

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents