Branch to SubRoutine
NAME
BSR -- Branch to subroutine
SYNOPSIS
BSR <label>
Size = (Byte, Word)
Size = (Byte, Word, Long) (68020+)
FUNCTION
Pushes the long word address which follows the BSR instruction to
stack.
Program execution continues at location (PC) + offset.
Offset is the relative gap between PC value and label.
This gap is calculated by complement to two and is coded on 8 bits
or on 16 bits.
FORMAT
-----------------------------------------------------------------
|15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|-------------------------------|
| 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 8 BITS OFFSET |
|---------------------------------------------------------------|
| 16 BITS OFFSET, IF 8 BITS OFFSET = $00 |
|---------------------------------------------------------------|
| 32 BITS OFFSET, IF 8 BITS OFFSET = $FF |
-----------------------------------------------------------------
RESULT
None.
SEE ALSO
JSR BRA
RTS RTD RTR
HTML Conversion by AG2HTML.pl V2.941126c, perl $RCSfile: bsr.HTML,v $$Revision: 1.1 $$Date: 1999/09/14 21:14:07 $
Patch level: 36
& witbrock@cs.cmu.edu