The wheni command executes commands when a given low-level event occurs. It is valid only in native mode.
The wheni command has the following general syntax:
wheni event_specification [modifier]{command... ; }
When the specified event occurs, the commands are executed.
The following specific syntax is valid:
Execute command when address_expression is reached.
where:
address is any expression resulting in or usable as an address.
command is the name of a command.
For a list and the syntax of all events see Setting Event Specifications.