RO:LoadExeCRO: Difference between revisions

Unknown (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|-
|-
| 0
| 0
| Header code [0x000402C2]
| Header code [0x000402C2] ([0x000902C2] for the new version)
|-
|-
| 1
| 1
Line 17: Line 17:
| Total size of input CRO.
| Total size of input CRO.
|-
|-
| 4-11
| 4
| Unknown
| Process-memory buffer address to use for the CRO .data section, all CRO .data section addresses are automatically adjusted to use this address.
|-
| 5
| Usually zero?
|-
| 6
| .data section buffer size.
|-
| 7
| Process-memory buffer address to use for the CRO .bss section, all CRO .bss section addresses are automatically adjusted to use this address.
|-
| 8
| .bss section buffer size.
|-
| 9
| Register as auto-link module if non-zero.
|-
| 10
| Fix level.
|-
| 11
| Usually zero?
|-
|-
| 12
| 12
| Must be zero
| Must be zero ([[IPC#Message_Structure|translation descriptor]])
|-
|-
| 13
| 13
Line 40: Line 61:
|-
|-
| 2
| 2
| Unknown
| CRO size after fixing
|}
|}
=Description=
This loads a [[CRO0|CRO]], and maps virtual memory for it with the required memory-permissions.