Nintendo 1504166 - Game Boy Advance SP Edition Console Programming Manual page 50

Programming manual
Table of Contents

Advertisement

AGB Programming Manual
Parameters used in rotation and scaling operations are specified for BG2
and BG3 in the following registers. Registers for Starting Point of BG Data
Reference are also used when Scaling/Rotation BG and Bitmap Mode BG
are offset displayed (scrolled). (There is also an offset register for Text
BG.)
Registers for Setting the Starting Point of BG Data
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
028h
BG2X_L
038h
BG3X_L
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
02Ah
BG2X_H
03Ah
BG3X_H
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
02Ch
BG2Y_L
03Ch
BG3Y_L
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
02Eh
BG2Y_H
03Eh
BG3Y_H
Registers for Setting the Direction Parameters of BG Data
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
020h
BG2PA
030h
BG3PA
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
022h
BG2PB
032h
BG3PB
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
024h
BG2PC
034h
BG3PC
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Address
Register
026h
BG2PD
036h
BG3PD
©1999 - 2001 Nintendo of America Inc.
X-coordinate of reference starting point (rotation/scaling results)
X-coordinate of reference starting point
(rotation/scaling results)
Y-coordinate of reference starting point (rotation/scaling results)
Y-coordinate of reference starting point
(rotation/scaling results)
dx: distance of movement in x direction along same line
dmx: distance of movement in x direction along next line
dy: distance of movement in y direction along same line
dmy: distance of movement in y direction along next line
50
Rendering Functions
AttributesInitial Value
W
0000h
Attributes Initial Value
W
0000h
Attributes Initial Value
W
0000h
AttributesInitial Value
W
0000h
Attributes Initial Value
W
0100h
Attributes Initial Value
W
0000h
Attributes Initial Value
W
0000h
Attributes Initial Value
W
0100h
D.C.N. AGB-06-0001-002B4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Agb series

Table of Contents