12.10.3. ARMul_SWIHandler

This function can be called from a handle_swi() function to enter a SWI handler at a given address. It causes the processor to act as if it had taken the SWI vector, decoded the SWI number, and then branched to this address.

Syntax


void ARMul_SWIHandler(ARMul_State *state, ARMword address)

where:

state

is a pointer to the ARMulator state.

address

is the address of the instruction to return to.

Usage

See the code for handling SWI_GenerateError in angel.c.for an example of how to use this function.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0041C
Non-Confidential