Changes

Jump to navigation Jump to search
832 bytes removed ,  01:54, 22 May 2017
m
Line 1: Line 1: −
== Registers ==
+
Other registers that used to be documented on this page are now at [[GPU Registers]].
 +
 
 +
= Registers =
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
 
!  NAME
 
!  NAME
Line 7: Line 9:  
!  WIDTH
 
!  WIDTH
 
|-
 
|-
| REG_LCDCOLORFILLMAIN
+
| Parallax barrier enable
| 0x10202204
+
| 0x10202000
| 0x1ED02204
+
| 0x1ED02000
| 0xFFFD6204
+
| 0xFFFD6000
| 4
+
| 0x4
 
|-
 
|-
| REG_LCDCOLORFILLSUB
+
| ?
| 0x10202A04
+
| 0x10202004
| 0x1ED02A04
+
| 0x1ED02004
| 0xFFFD6A04
+
| 0xFFFD6004
| 4
+
| 0x4
 +
|-
 +
| Top Screen [[#LCD Configuration|LCD Configuration]]
 +
| 0x10202200
 +
| 0x1ED02200
 +
| 0xFFFD6200
 +
| 0x600
 +
|-
 +
| Bottom Screen [[#LCD Configuration|LCD Configuration]]
 +
| 0x10202A00
 +
| 0x1ED02A00
 +
| 0xFFFD6A00
 +
| 0x600
 +
|-
 +
| ?
 +
| 0x10203200
 +
| 0x1ED03200
 +
| 0xFFFD7200
 +
| 0x40
 
|}
 
|}
   −
REG_*MAIN registers are used for the top LCD, while SUB is used for the bottom LCD. The registers for the main LCD is located at 0x1EF00400, while the sub LCD registers are located at 0x1EF00500.
+
On screen-init (error screen), Boot11 sets 0x10202004 to 0xA390A39.
   −
== REG_LCDCOLORFILL ==
+
== LCD Configuration ==
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Bit
+
Offset
 +
!  Size
 
!  Description
 
!  Description
 
|-
 
|-
| 7-0
+
| 0x00
| Red component intensity
+
| 0x4
 +
| ?
 +
|-
 +
| 0x04
 +
| 0x4
 +
| [[#Fill Color|Fill Color]]
 +
|-
 +
| 0x10
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x14
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x18
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x1C
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x20
 +
| 0x4
 +
| ?
 +
|-
 +
| 0x24
 +
| 0x4
 +
| ?
 
|-
 
|-
| 15-8
+
| 0x28
| Green component intensity
+
| 0x4
 +
| ?
 
|-
 
|-
| 23-16
+
| 0x2C
| Blue component intensity
+
| 0x4
 +
| ?
 
|-
 
|-
| 24
+
| 0x30
| Enable
+
| 0x4
 +
| ?
 
|-
 
|-
| 31-25
+
| 0x38
 +
| 0x4
 
| ?
 
| ?
|}
  −
When the enable bit is set, the specified solid color is displayed on the LCD instead of the rendered graphics.
  −
  −
== 0x1EF00X5C ==
  −
{| class="wikitable" border="1"
  −
!  Bit
  −
!  Description
   
|-
 
|-
| 15-0
+
| 0x3C
| Framebuffer width?
+
| 0x4
 +
| ?
 
|-
 
|-
| 31-16
+
| 0x40
| Framebuffer height?
+
| 0x4
|}
+
| Backlight
 
  −
This register might control the framebuffer dimensions, however writing to this doesn't affect the displayed LCD image.
  −
 
  −
== 0x1EF00X78 ==
  −
{| class="wikitable" border="1"
  −
!  Bit
  −
!  Description
   
|-
 
|-
| 0
+
| 0x44
| LCD framebuffer to display (0=first, 1=second)
+
| 0x4
 +
| ?
 
|-
 
|-
| 7-1
+
| 0x60
 +
| 0x4
 
| ?
 
| ?
 
|-
 
|-
| 31-8
+
| 0x68
| Unused
+
| 0x4
|}
+
| ?
 
  −
== 0x1EF00X90 ==
  −
{| class="wikitable" border="1"
  −
!  Bit
  −
!  Description
   
|-
 
|-
| 3-0
+
| 0x70
 +
| 0x4
 
| ?
 
| ?
 
|-
 
|-
| 11-4
+
| 0x78
| Controls the framebuffer width
+
| 0x4
 +
| ?
 
|-
 
|-
| 31-12
+
| 0x80
 +
| 0x4
 
| ?
 
| ?
 +
|-
 +
| 0x100
 +
| 0x100
 +
| LCD calibration data, pulled from nand:/ro/sys/HWCAL0.dat offset 0x77C.
 +
N3DS only. This area on old3DS is zero-filled and not writable.
 
|}
 
|}
   −
== Framebuffers ==
+
=== Fill Color ===
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Address
+
Bit
 
!  Description
 
!  Description
 
|-
 
|-
| 0x1EF00468
+
| 7-0
| Main LCD, first framebuffer for 3D left
+
| Red component intensity
 
|-
 
|-
| 0x1EF0046C
+
| 15-8
| Main LCD, second framebuffer for 3D left
+
| Green component intensity
 
|-
 
|-
| 0x1EF00494
+
| 23-16
| Main LCD, first framebuffer for 3D right
+
| Blue component intensity
 
|-
 
|-
| 0x1EF00498
+
| 24
| Main LCD, second framebuffer for 3D right
+
| Enable
 
|-
 
|-
| 0x1EF00568
+
| 31-25
| Sub LCD, first framebuffer
+
| ?
|-
  −
| 0x1EF0056C
  −
| Sub LCD, second framebuffer
  −
|-
  −
| 0x1EF00594
  −
| Sub LCD, unused first framebuffer
  −
|-
  −
| 0x1EF00598
  −
| Sub LCD, unused second framebuffer
   
|}
 
|}
   −
The above framebuffer registers contains the physical address for each framebuffer, normally located in FCRAM in the application's GSP heap.
+
When the enable bit is set, the specified solid color is displayed on the LCD instead of the framebuffer.
 
  −
These LCD framebuffers normally contain the last rendered frames from the GPU. The color format is BGR8. The framebuffers are drawn from left-to-right, instead of top-to-bottom.(Thus the beginning of the framebuffer is drawn starting at the left side of the screen)
  −
 
  −
Both of the 3D screen left/right framebuffers are displayed regardless of the 3D slider's state, normally when the 3D slider's state is set to "off" the left/right framebuffer addresses are set to the same physical address.
 
516

edits

Navigation menu