blob: c6ccccbc230446fd7b9c6980a0d71cdbfe534f12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
.pa 1
.he 'SWITCH (III)'3/15/72'SWITCH (III)'
.ti 0
NAME switch -- switch on value
.sp
.ti 0
SYNOPSIS (switch value in r0)
.br
jsr r5,switch; swtab
.br
(not-found return)
.br
.li
...
.ti -7
swtab: val1; lab1;
.br
.li
...
.br
valn; labn
.br
.li
..; 0
.sp
.ti 0
DESCRIPTION switch______
compares the value of r0 against each of the val\di\u; if
a match is found, control is transferred to the corresponding
lab\di\u (after popping the stack once).
If no match has been found by the time a null lab\di\u
occurs, switch______ returns.
.sp
.ti 0
FILES kept in /lib/liba.a
.sp
.ti 0
SEE ALSO --
.sp
.ti 0
DIAGNOSTICS --
.sp
.ti 0
BUGS --
|