File:  [Research Unix] / researchv10dc / dist / man / v3 / man3 / switch.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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		--

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.