Rizin
unix-like reverse engineering framework and cli tools
psxexe.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2015 Dax <trogu.davide@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#ifndef PSXEXE_H
5
#define PSXEXE_H
6
7
#define PSXEXE_ID "PS-X EXE"
8
#define PSXEXE_ID_LEN 8
9
#define PSXEXE_TEXTSECTION_OFFSET 0x800
10
11
#include <
rz_types.h
>
12
13
typedef
struct
psxexe_header
{
14
ut8
id
[8];
15
ut32
text
;
16
ut32
data
;
17
ut32
pc0
;
18
ut32
gp0
;
19
ut32
t_addr
;
20
ut32
t_size
;
21
ut32
d_addr
;
22
ut32
d_size
;
23
ut32
b_addr
;
24
ut32
b_size
;
25
ut32
S_addr
;
26
ut32
S_size
;
27
ut32
SavedSP
;
28
ut32
SavedFP
;
29
ut32
SavedGP
;
30
ut32
SavedRA
;
31
ut32
SavedS0
;
32
}
psxexe_header
;
33
34
#endif
// PSXEXE_H
ut32
uint32_t ut32
Definition:
demangler_util.h:31
ut8
uint8_t ut8
Definition:
lh5801.h:11
psxexe_header
struct psxexe_header psxexe_header
rz_types.h
psxexe_header
Definition:
psxexe.h:13
psxexe_header::text
ut32 text
Definition:
psxexe.h:15
psxexe_header::b_addr
ut32 b_addr
Definition:
psxexe.h:23
psxexe_header::pc0
ut32 pc0
Definition:
psxexe.h:17
psxexe_header::d_size
ut32 d_size
Definition:
psxexe.h:22
psxexe_header::S_addr
ut32 S_addr
Definition:
psxexe.h:25
psxexe_header::SavedFP
ut32 SavedFP
Definition:
psxexe.h:28
psxexe_header::b_size
ut32 b_size
Definition:
psxexe.h:24
psxexe_header::gp0
ut32 gp0
Definition:
psxexe.h:18
psxexe_header::data
ut32 data
Definition:
psxexe.h:16
psxexe_header::SavedGP
ut32 SavedGP
Definition:
psxexe.h:29
psxexe_header::t_addr
ut32 t_addr
Definition:
psxexe.h:19
psxexe_header::SavedRA
ut32 SavedRA
Definition:
psxexe.h:30
psxexe_header::t_size
ut32 t_size
Definition:
psxexe.h:20
psxexe_header::SavedSP
ut32 SavedSP
Definition:
psxexe.h:27
psxexe_header::SavedS0
ut32 SavedS0
Definition:
psxexe.h:31
psxexe_header::S_size
ut32 S_size
Definition:
psxexe.h:26
psxexe_header::d_addr
ut32 d_addr
Definition:
psxexe.h:21
librz
bin
format
psxexe
psxexe.h
Generated by
1.9.1