xref: /csrg-svn/sys/tahoe/align/Abbs.c (revision 45760)
1*45760Sbostic /*-
2*45760Sbostic  * Copyright (c) 1986 The Regents of the University of California.
3*45760Sbostic  * All rights reserved.
4*45760Sbostic  *
5*45760Sbostic  * This code is derived from software contributed to Berkeley by
6*45760Sbostic  * Computer Consoles Inc.
7*45760Sbostic  *
8*45760Sbostic  * %sccs.include.redist.c%
9*45760Sbostic  *
10*45760Sbostic  *	@(#)Abbs.c	7.1 (Berkeley) 12/06/90
11*45760Sbostic  */
1229590Ssam 
1345699Sbostic #include "align.h"
bbs(infop)1429590Ssam bbs(infop)	process_info *infop;
1529590Ssam /*
1629590Ssam /*	Branch on bit set.
1729590Ssam /*
1829590Ssam /********************************/
1929590Ssam {
2029590Ssam 	register int position,base, new_address;
2129590Ssam 
2229590Ssam 	position = operand(infop,0)-> data & 0x1f;
2329590Ssam 	base = operand(infop,1)->data;
2429590Ssam 	new_address = operand(infop,2) -> address;
2529590Ssam 	negative_0; zero_1; overflow_0; carry_1;
2629590Ssam 	if  (base & 1 << position) pc = new_address;
2729590Ssam }
28