Fix asm.gb build

This commit is contained in:
pancake 2015-10-21 19:45:54 +02:00
parent 9d5f7c44a0
commit 922da0064b
3 changed files with 4 additions and 10 deletions

View File

@ -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)

View File

@ -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,
};

View File

@ -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