Nugget
Loading...
Searching...
No Matches
common
psxlibc
psxexe.h
Go to the documentation of this file.
1
/*
2
3
MIT License
4
5
Copyright (c) 2020 PCSX-Redux authors
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software and associated documentation files (the "Software"), to deal
9
in the Software without restriction, including without limitation the rights
10
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
copies of the Software, and to permit persons to whom the Software is
12
furnished to do so, subject to the following conditions:
13
14
The above copyright notice and this permission notice shall be included in all
15
copies or substantial portions of the Software.
16
17
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
SOFTWARE.
24
25
*/
26
27
#pragma once
28
29
#include <stdint.h>
30
31
struct
psxExeHeader
{
32
uint32_t
pc
;
33
uint32_t
gp
;
34
uint32_t
text_addr
;
35
uint32_t
text_size
;
36
uint32_t
data_addr
;
37
uint32_t
data_size
;
38
uint32_t
bss_addr
;
39
uint32_t
bss_size
;
40
uint32_t
stack_start
;
41
uint32_t
stack_size
;
42
uint32_t
savedSP
;
43
uint32_t
savedS8
;
44
uint32_t
savedGP
;
45
uint32_t
savedRA
;
46
uint32_t
savedS0
;
47
uint32_t
unknown
;
48
};
psxExeHeader
Definition
psxexe.h:31
psxExeHeader::savedRA
uint32_t savedRA
Definition
psxexe.h:45
psxExeHeader::pc
uint32_t pc
Definition
psxexe.h:32
psxExeHeader::data_addr
uint32_t data_addr
Definition
psxexe.h:36
psxExeHeader::unknown
uint32_t unknown
Definition
psxexe.h:47
psxExeHeader::bss_size
uint32_t bss_size
Definition
psxexe.h:39
psxExeHeader::savedSP
uint32_t savedSP
Definition
psxexe.h:42
psxExeHeader::stack_start
uint32_t stack_start
Definition
psxexe.h:40
psxExeHeader::text_size
uint32_t text_size
Definition
psxexe.h:35
psxExeHeader::text_addr
uint32_t text_addr
Definition
psxexe.h:34
psxExeHeader::bss_addr
uint32_t bss_addr
Definition
psxexe.h:38
psxExeHeader::savedS8
uint32_t savedS8
Definition
psxexe.h:43
psxExeHeader::stack_size
uint32_t stack_size
Definition
psxexe.h:41
psxExeHeader::savedGP
uint32_t savedGP
Definition
psxexe.h:44
psxExeHeader::savedS0
uint32_t savedS0
Definition
psxexe.h:46
psxExeHeader::gp
uint32_t gp
Definition
psxexe.h:33
psxExeHeader::data_size
uint32_t data_size
Definition
psxexe.h:37
uint32_t
void uint32_t(classId, spec)
Generated by
1.9.8