Difference between revisions of "FSPXI:ReadFileSHA256"

From 3dbrew
Jump to navigation Jump to search
Line 62: Line 62:
  
 
The data read are stored in the second memory block. The first memory block is filled with hashes, in an unknown manner.
 
The data read are stored in the second memory block. The first memory block is filled with hashes, in an unknown manner.
 +
 +
Reads seem to be sector-aligned (one sector = 0x1000 bytes when reading from the cart, not sure if that is true everywhere). The first memory block seems to be filled with one hash per sector read.

Revision as of 02:16, 27 March 2015

Request

Index Word Description
0 Header code [0x004D01C4]
1 File(/archive?) handle lower word
2 File handle upper word
3 Offset lower word
4 Offset upper word
5 Size of second memory block
6 Unknown (always 0x00001000)
7 Size of first memory block
8 (size of first mem block << 8) | 4
9 Pointer to first memory block
10 (size of second mem block << 8) | 0x14
11 Pointer to second memory block

Response

Index Word Description
0 Header code
1 Result code
2 Size read
3 4

The data read are stored in the second memory block. The first memory block is filled with hashes, in an unknown manner.

Reads seem to be sector-aligned (one sector = 0x1000 bytes when reading from the cart, not sure if that is true everywhere). The first memory block seems to be filled with one hash per sector read.