SWI value
其中:
value |
8 位立即數 |
N |
Z |
C |
V |
Q |
S |
I |
F |
T |
|
|
|
|
|
|
|
|
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
|
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
1 |
value |
1 ;@.text
2 ;@.globl funswi
3 ;@.align 0
4 ;
5 AREA example, CODE, READONLY
6 CODE16
7
8 label1
9 ; Generate Software Interrupt
10 ; The value -- 26 -- can be used
11 ; by the operating system to
12 ; determine correct handler
13 SWI 26