Rizin
unix-like reverse engineering framework and cli tools
meta_gb_cmt.c
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2013 condret <condr3t@protonmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#include <
rz_io.h
>
5
#include <
rz_analysis.h
>
6
7
void
meta_gb_bankswitch_cmt
(
RzAnalysis
*
a
,
ut64
addr
,
ut16
ldarg) {
8
if
(0x1fff < ldarg && ldarg < 0x4000 &&
addr
< 0x4000)
9
rz_meta_set_string
(
a
,
RZ_META_TYPE_COMMENT
,
addr
,
"Bankswitch"
);
10
if
(0x6000 > ldarg && ldarg > 0x3fff)
11
rz_meta_set_string
(
a
,
RZ_META_TYPE_COMMENT
,
addr
,
"Ramswitch"
);
12
}
ut16
uint16_t ut16
Definition:
demangler_util.h:30
rz_meta_set_string
RZ_API bool rz_meta_set_string(RzAnalysis *a, RzAnalysisMetaType type, ut64 addr, const char *s)
Definition:
meta.c:141
meta_gb_bankswitch_cmt
void meta_gb_bankswitch_cmt(RzAnalysis *a, ut64 addr, ut16 ldarg)
Definition:
meta_gb_cmt.c:7
rz_analysis.h
RZ_META_TYPE_COMMENT
@ RZ_META_TYPE_COMMENT
Definition:
rz_analysis.h:295
rz_io.h
a
#define a(i)
Definition:
sha256.c:41
rz_analysis_t
Definition:
rz_analysis.h:553
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
addr
static int addr
Definition:
z80asm.c:58
librz
analysis
arch
gb
meta_gb_cmt.c
Generated by
1.9.1