Datasheet

Semihosting
5-4 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
If you are calling SWIs from assembly language code it is best to use the operation
names that are defined in
semihost.h
. You can define the operation names with an
EQU
directive. For example:
SYS_OPEN EQU 0x01
SYS_CLOSE EQU 0x02
Changing the semihosting SWI numbers
It is strongly recommended that you do not change the semihosting SWI numbers
0x123456
(ARM) or
0xAB
(Thumb). If you do so you must:
change all the code in your system, including library code, to use the new SWI
number
reconfigure your debugger to use the new SWI number.