lundi 7 juillet 2008

registers

The registers are quite interesting, seen as a table.
from all kind of sources these tables are collected:

first here a list with registers and addresses can be found:
http://www.dspassme.com/programmers_guide/tutorial/registers.html
in this page tables are given too, with explanations

DISPLAY_CR (0x04000000)

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
31 BGExtPal29 28 27 26 25 24 23 22 21 20 FBBank ExtMode
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SprWinWin1Win0Obj BG3 BG2 BG1 BG0 BlnkScrU6 OAMHorzBlankObjMapMode 3D Mode



//-------other sources------------------------------------------------------------------

BGx_CR:(background)

b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
Size
Wrap
Map Block Num
Color Mode
Mosaic
.
.
Tile Block Num
Priority

http://edorul.ifrance.com/french/chapitre12.htm

//-------------------------------------------------------------------------------------------

Attribute : 0 (sprite attribute)

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Shape

C

M

Alpha

SD

R

Y-coordinate

http://home.no/neogeo/HOVEDSIDE_INDEX/GBA_HOVEDSIDE_INDEX_ENGELSK/GBA%20HTML%20LEKSJONER%201-5/GBA_Lek4_english.htm

Attribute : 1

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Form

VF

HF

Rot data index

X-coordinate


Attribute : 2

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Palette nummer

Priority

Sprite number



//-------------------------------------------------------------------------------------------

REG_MOSAIC @ 0400:004Ch
F E D CB A 9 8 7 6 5 43 2 1 0
Ov Oh Bv Bh

http://www.coranac.com/tonc/text/gfx.htm#sec-mos

//-------------------------------------------------------------------------------------------

IRQ ( )

24
23 22
21
19 20
17 18 18 16
IRQ_WIFI
IRQ_SPI 
IRQ_LID
IRQ_GEOMETRY_FIFO  
IRQ_CARD
IRQ_CARD_LINE
IRQ_FIFO_EMPTY
IRQ_FIFO_NOT_EMPTY
 IRQ_IPC_SYNC

14 13 12
11 10 9 8 7 6 5 4 3 2 1

IRQ_CART
IRQ_KEYS 
IRQ_DMA0
IRQ_DMA1
IRQ_DMA2
IRQ_DMA3


IRQ_NETWORK
IRQ_TIMER0
IRQ_TIMER1
IRQ_TIMER2
IRQ_TIMER3



IRQ_VBLANK
IRQ_HBLANK
IRQ_VCOUNT

http://takuto.info/libnds/arm7j/interrupts_8h.html#e384b89225fb3517bba35d3dc790c71638af5b8afc08fd0c0423b74f1e944ff9