Rizin
unix-like reverse engineering framework and cli tools
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
b
d
e
h
i
k
n
p
r
s
w
Properties
Events
Related Functions
Files
File List
File Members
All
$
.
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
.
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Friends
Macros
Modules
Pages
gb_makros.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2013 condret <condret@runas-racer.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#include <
rz_types.h
>
5
6
#define GB_IS_VIRTUAL(x) (x / 0x10000)
7
#define GB_R_MBC_ADDR(x) (x % 0x10000)
8
#define GB_SOFTCAST(x, y) (x + (y * 0x100))
9
#define GB_IS_RAM_DST(x, y) (GB_SOFTCAST(x, y) / 0x8000)
10
#define GB_VBANK_ADDR(x) ((x / 0x10000) * 0x10000 + 0x4000)
11
#define GB_IB_DST(x, y, z) (GB_SOFTCAST(x, y) - 0x4000 + GB_VBANK_ADDR(z))
12
#define GB_IS_VBANK(x) (x > (GB_VBANK_ADDR(x) - 1) && x < (GB_VBANK_ADDR(x) + 0x4000))
13
#define GB_IS_VBANK_DST(x, y) (GB_IS_VBANK(GB_SOFTCAST(x, y)))
rz_types.h
librz
analysis
arch
gb
gb_makros.h
Generated by
1.9.1