mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
Fix asm.gb build
This commit is contained in:
parent
9d5f7c44a0
commit
922da0064b
@ -3,14 +3,12 @@
|
||||
#include <r_asm.h>
|
||||
#include <string.h>
|
||||
|
||||
static void str_op (char *c)
|
||||
{
|
||||
static void str_op(char *c) {
|
||||
if ((c[0] <= 'Z') && (c[0] >= 'A'))
|
||||
c[0] += 0x20;
|
||||
}
|
||||
|
||||
static int gbAsm (RAsm *a, RAsmOp *op, const char *buf)
|
||||
{
|
||||
static int gbAsm(RAsm *a, RAsmOp *op, const char *buf) {
|
||||
int mn_len, i, len = 1;
|
||||
ut32 mn = 0;
|
||||
if (!a || !op || !buf)
|
||||
|
@ -1,5 +1,4 @@
|
||||
/* radare - LGPL - Copyright 2012-2014 - pancake
|
||||
2013-2015 - condret */
|
||||
/* radare - LGPL - Copyright 2012-2015 - pancake, condret */
|
||||
|
||||
// fork of asm_z80.c
|
||||
|
||||
@ -27,10 +26,7 @@ RAsmPlugin r_asm_plugin_gb = {
|
||||
.arch = "z80",
|
||||
.license = "LGPL3",
|
||||
.bits = 16,
|
||||
.init = NULL,
|
||||
.fini = NULL,
|
||||
.disassemble = &disassemble,
|
||||
.modify = NULL,
|
||||
.assemble = &assemble,
|
||||
};
|
||||
|
||||
|
@ -7,5 +7,5 @@ ifeq ($(WITHPIC),1)
|
||||
ALL_TARGETS+=${TARGET_GB}
|
||||
|
||||
${TARGET_GB}: ${OBJ_GB}
|
||||
${CC} ${call libname,asm_gb} ${CFLAGS} -o ${TARGET_GB} ${OBJ_GB}
|
||||
${CC} ${call libname,asm_gb} ${CFLAGS} $(LDFLAGS) -o ${TARGET_GB} ${OBJ_GB}
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user