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 {
16 
17 enum {
18  MBC_ROM = 0,
22  MBC2 = 0x5,
24  MBC_ROM_RAM = 0x8,
26  MBC_MMM = 0x0b,
29  MBC3_BAT_TIM = 0x0f,
34  MBC4 = 0x15,
37  MBC5 = 0x19,
43  CAM = 0xfc,
47 };
48 
49 enum {
50  NOBANK = 0,
58  BANK72 = 0x52,
60  BANK96
61 };
62 
63 enum {
64  NORAM = 0,
67  RAM32K
68 };
69 #endif
uint32_t ut32
struct gb_user_t GBUser
@ BANK32
Definition: gb.h:54
@ BANK128
Definition: gb.h:56
@ BANK8
Definition: gb.h:52
@ BANK96
Definition: gb.h:60
@ BANK256
Definition: gb.h:57
@ BANK4
Definition: gb.h:51
@ BANK16
Definition: gb.h:53
@ NOBANK
Definition: gb.h:50
@ BANK72
Definition: gb.h:58
@ BANK80
Definition: gb.h:59
@ BANK64
Definition: gb.h:55
@ RAM8K
Definition: gb.h:66
@ NORAM
Definition: gb.h:64
@ RAM2K
Definition: gb.h:65
@ RAM32K
Definition: gb.h:67
@ MBC1_RAM_BAT
Definition: gb.h:21
@ MBC5_RAM_RUM
Definition: gb.h:41
@ MBC5_RAM_BAT_RUM
Definition: gb.h:42
@ MBC5
Definition: gb.h:37
@ MBC3_RAM_BAT_TIM
Definition: gb.h:30
@ MBC_ROM_RAM
Definition: gb.h:24
@ MBC3_BAT_TIM
Definition: gb.h:29
@ MBC5_RUM
Definition: gb.h:40
@ MBC1
Definition: gb.h:19
@ MBC3_RAM
Definition: gb.h:32
@ CAM
Definition: gb.h:43
@ MBC3_RAM_BAT
Definition: gb.h:33
@ MBC1_RAM
Definition: gb.h:20
@ MBC4
Definition: gb.h:34
@ HUC1_RAM_BAT
Definition: gb.h:46
@ MBC5_RAM_BAT
Definition: gb.h:39
@ MBC_MMM_RAM_BAT
Definition: gb.h:28
@ MBC_MMM
Definition: gb.h:26
@ MBC_MMM_RAM
Definition: gb.h:27
@ HUC3
Definition: gb.h:45
@ TAMA5
Definition: gb.h:44
@ MBC2_BAT
Definition: gb.h:23
@ MBC_ROM
Definition: gb.h:18
@ MBC4_RAM
Definition: gb.h:35
@ MBC4_RAM_BAT
Definition: gb.h:36
@ MBC3
Definition: gb.h:31
@ MBC_ROM_RAM_BAT
Definition: gb.h:25
@ MBC5_RAM
Definition: gb.h:38
@ MBC2
Definition: gb.h:22
uint8_t ut8
Definition: lh5801.h:11
Definition: gb.h:8
ut32 cycles
Definition: gb.h:14
ut8 mbc_id
Definition: gb.h:9
ut8 rambanks
Definition: gb.h:13
ut8 romsz_id
Definition: gb.h:10
ut8 rombanks
Definition: gb.h:12
ut8 ramsz_id
Definition: gb.h:11