Rizin
unix-like reverse engineering framework and cli tools
gb.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2014 condret <condret@runas-racer.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#ifndef GB_H
5
#define GB_H
6
#include <
rz_types.h
>
7
8
typedef
struct
gb_user_t
{
9
ut8
mbc_id
;
10
ut8
romsz_id
;
11
ut8
ramsz_id
;
12
ut8
rombanks
;
13
ut8
rambanks
;
14
ut32
cycles
;
15
}
GBUser
;
16
17
enum
{
18
MBC_ROM
= 0,
19
MBC1
,
20
MBC1_RAM
,
21
MBC1_RAM_BAT
,
22
MBC2
= 0x5,
23
MBC2_BAT
,
24
MBC_ROM_RAM
= 0x8,
25
MBC_ROM_RAM_BAT
,
26
MBC_MMM
= 0x0b,
27
MBC_MMM_RAM
,
28
MBC_MMM_RAM_BAT
,
29
MBC3_BAT_TIM
= 0x0f,
30
MBC3_RAM_BAT_TIM
,
31
MBC3
,
32
MBC3_RAM
,
33
MBC3_RAM_BAT
,
34
MBC4
= 0x15,
35
MBC4_RAM
,
36
MBC4_RAM_BAT
,
37
MBC5
= 0x19,
38
MBC5_RAM
,
39
MBC5_RAM_BAT
,
40
MBC5_RUM
,
41
MBC5_RAM_RUM
,
42
MBC5_RAM_BAT_RUM
,
43
CAM
= 0xfc,
44
TAMA5
,
45
HUC3
,
46
HUC1_RAM_BAT
47
};
48
49
enum
{
50
NOBANK
= 0,
51
BANK4
,
52
BANK8
,
53
BANK16
,
54
BANK32
,
55
BANK64
,
56
BANK128
,
57
BANK256
,
58
BANK72
= 0x52,
59
BANK80
,
60
BANK96
61
};
62
63
enum
{
64
NORAM
= 0,
65
RAM2K
,
66
RAM8K
,
67
RAM32K
68
};
69
#endif
ut32
uint32_t ut32
Definition:
demangler_util.h:31
GBUser
struct gb_user_t GBUser
BANK32
@ BANK32
Definition:
gb.h:54
BANK128
@ BANK128
Definition:
gb.h:56
BANK8
@ BANK8
Definition:
gb.h:52
BANK96
@ BANK96
Definition:
gb.h:60
BANK256
@ BANK256
Definition:
gb.h:57
BANK4
@ BANK4
Definition:
gb.h:51
BANK16
@ BANK16
Definition:
gb.h:53
NOBANK
@ NOBANK
Definition:
gb.h:50
BANK72
@ BANK72
Definition:
gb.h:58
BANK80
@ BANK80
Definition:
gb.h:59
BANK64
@ BANK64
Definition:
gb.h:55
RAM8K
@ RAM8K
Definition:
gb.h:66
NORAM
@ NORAM
Definition:
gb.h:64
RAM2K
@ RAM2K
Definition:
gb.h:65
RAM32K
@ RAM32K
Definition:
gb.h:67
MBC1_RAM_BAT
@ MBC1_RAM_BAT
Definition:
gb.h:21
MBC5_RAM_RUM
@ MBC5_RAM_RUM
Definition:
gb.h:41
MBC5_RAM_BAT_RUM
@ MBC5_RAM_BAT_RUM
Definition:
gb.h:42
MBC5
@ MBC5
Definition:
gb.h:37
MBC3_RAM_BAT_TIM
@ MBC3_RAM_BAT_TIM
Definition:
gb.h:30
MBC_ROM_RAM
@ MBC_ROM_RAM
Definition:
gb.h:24
MBC3_BAT_TIM
@ MBC3_BAT_TIM
Definition:
gb.h:29
MBC5_RUM
@ MBC5_RUM
Definition:
gb.h:40
MBC1
@ MBC1
Definition:
gb.h:19
MBC3_RAM
@ MBC3_RAM
Definition:
gb.h:32
CAM
@ CAM
Definition:
gb.h:43
MBC3_RAM_BAT
@ MBC3_RAM_BAT
Definition:
gb.h:33
MBC1_RAM
@ MBC1_RAM
Definition:
gb.h:20
MBC4
@ MBC4
Definition:
gb.h:34
HUC1_RAM_BAT
@ HUC1_RAM_BAT
Definition:
gb.h:46
MBC5_RAM_BAT
@ MBC5_RAM_BAT
Definition:
gb.h:39
MBC_MMM_RAM_BAT
@ MBC_MMM_RAM_BAT
Definition:
gb.h:28
MBC_MMM
@ MBC_MMM
Definition:
gb.h:26
MBC_MMM_RAM
@ MBC_MMM_RAM
Definition:
gb.h:27
HUC3
@ HUC3
Definition:
gb.h:45
TAMA5
@ TAMA5
Definition:
gb.h:44
MBC2_BAT
@ MBC2_BAT
Definition:
gb.h:23
MBC_ROM
@ MBC_ROM
Definition:
gb.h:18
MBC4_RAM
@ MBC4_RAM
Definition:
gb.h:35
MBC4_RAM_BAT
@ MBC4_RAM_BAT
Definition:
gb.h:36
MBC3
@ MBC3
Definition:
gb.h:31
MBC_ROM_RAM_BAT
@ MBC_ROM_RAM_BAT
Definition:
gb.h:25
MBC5_RAM
@ MBC5_RAM
Definition:
gb.h:38
MBC2
@ MBC2
Definition:
gb.h:22
ut8
uint8_t ut8
Definition:
lh5801.h:11
rz_types.h
gb_user_t
Definition:
gb.h:8
gb_user_t::cycles
ut32 cycles
Definition:
gb.h:14
gb_user_t::mbc_id
ut8 mbc_id
Definition:
gb.h:9
gb_user_t::rambanks
ut8 rambanks
Definition:
gb.h:13
gb_user_t::romsz_id
ut8 romsz_id
Definition:
gb.h:10
gb_user_t::rombanks
ut8 rombanks
Definition:
gb.h:12
gb_user_t::ramsz_id
ut8 ramsz_id
Definition:
gb.h:11
librz
analysis
arch
gb
gb.h
Generated by
1.9.1