Difference between revisions of "Loader services"

From Nintendo Switch Brew
Jump to navigation Jump to search
Line 16: Line 16:
 
! Cmd || Name
 
! Cmd || Name
 
|-
 
|-
| 0 || LoadNro
+
| 0 || [[#LoadNro]]
 
|-
 
|-
| 1 || LoadNrr  
+
| 1 || [[#LoadNrr]]
 
|-
 
|-
 
| 2 ||  
 
| 2 ||  
Line 24: Line 24:
 
| 3 ||  
 
| 3 ||  
 
|-
 
|-
| 4 || Initialize
+
| 4 || [[#Initialize]]
 +
|}
 +
 
 +
=== LoadNro ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Word || Value
 +
|-
 +
| 0 || 0x00000004
 +
|-
 +
| 1 || 0x80000012
 +
|-
 +
| 2 || 0x00000001
 +
|- style="border-top: double"
 +
| 0-1 || Pid
 +
|- style="border-top: double"
 +
| 0 || "SCFI"
 +
|-
 +
| 1 || 0x00000000
 +
|-
 +
| 2 || Always 0.
 +
|-
 +
| 3 || Nro address
 +
|-
 +
| 4 || Nro size
 +
|-
 +
| 5 ||
 +
|-
 +
| 6 || Bss size
 +
|}
 +
 
 +
=== LoadNrr ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Word || Value
 +
|-
 +
| 0 || 0x00000004
 +
|-
 +
| 1 || 0x8000000C
 +
|-
 +
| 2 || 0x00000001
 +
|-
 +
|- style="border-top: double"
 +
| 0-1 || Pid
 +
|- style="border-top: double"
 +
| 0 || "SFCI"
 +
|-
 +
| 1 || 0x00000001
 +
|-
 +
| 2 || Nrr address
 +
|-
 +
| 3 || Nrr size
 +
|}
 +
 
 +
=== Initialize ===
 +
{| class="wikitable" border="1"
 +
|-
 +
! Word || Value
 +
|-
 +
| 0 || 0x00000004
 +
|-
 +
| 1 || 0x8000000A
 +
|-
 +
| 2 || 0x00000003
 +
|- style="border-top: double"
 +
| 0-1 || Pid
 +
|-
 +
| 2 || Process handle (0xFFFF8001)
 +
|- style="border-top: double"
 +
| 0 || "SFCI"
 +
|-
 +
| 1 || 0x00000004
 +
|-
 +
| 2 || Always 0.
 
|}
 
|}

Revision as of 02:50, 16 April 2017

Loader services

ldr:shel

Cmd Name
0
1

ldr:ro

Cmd Name
0 #LoadNro
1 #LoadNrr
2
3
4 #Initialize

LoadNro

Word Value
0 0x00000004
1 0x80000012
2 0x00000001
0-1 Pid
0 "SCFI"
1 0x00000000
2 Always 0.
3 Nro address
4 Nro size
5
6 Bss size

LoadNrr

Word Value
0 0x00000004
1 0x8000000C
2 0x00000001
0-1 Pid
0 "SFCI"
1 0x00000001
2 Nrr address
3 Nrr size

Initialize

Word Value
0 0x00000004
1 0x8000000A
2 0x00000003
0-1 Pid
2 Process handle (0xFFFF8001)
0 "SFCI"
1 0x00000004
2 Always 0.