English
Language : 

SH7764 Datasheet, PDF (1233/1752 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 23 G2D
(7) GOSUB
(a) Function
Makes a subroutine call for the display list.
(b) Command Format
• REL = 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OP CODE = 0011_0000
Reserve (all 0)
Draw Mode
000
GOSUB Address (longword address)
00
• REL = 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OP CODE = 0011_0000
Reserve (all 0)
Draw Mode
Sign extended Sign
GOSUB Address (longword address)
00
1. Code
B'00110000
2. Rendering Attributes
Draw Mode
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Fixed Fixed Fixed Fixed Fixed Fixed Fixed Fixed REL Fixed Fixed Fixed Fixed Fixed Fixed No
to 0 to 0 to 0 to 0 to 0 to 0 to 0 to 0
to 0 to 0 to 0 to 0 to 0 to 0
3. Command Parameter
GOSUB Address:
Subroutine absolute address (Longword address. Write 0 to bits A31
to A29, A1, and A0.)
Subroutine relative address (Longword address. Negative number
expressed as two's complement. Bits A31 to A29 are used to extend
the sign in bit A28. Write 0 to bits A1 and A0.)
Note: Even in 32-bit addressing mode, write the values in bits 28 to 3 of the specified 32-bit
address to bits A28 to A3.
Rev. 1.00 Nov. 22, 2007 Page 1177 of 1692
REJ09B0360-0100