Put necv_dasm_one() into a header file

This commit is contained in:
Nathan Woods 2016-11-16 08:07:33 -05:00
parent 0d17e0ff72
commit dc4086847a
4 changed files with 11 additions and 2 deletions

View File

@ -1515,6 +1515,7 @@ if (CPUS["NEC"]~=null) then
files {
MAME_DIR .. "src/devices/cpu/nec/nec.cpp",
MAME_DIR .. "src/devices/cpu/nec/nec.h",
MAME_DIR .. "src/devices/cpu/nec/nec_common.h",
MAME_DIR .. "src/devices/cpu/nec/necea.h",
MAME_DIR .. "src/devices/cpu/nec/necinstr.h",
MAME_DIR .. "src/devices/cpu/nec/necinstr.hxx",

View File

@ -0,0 +1,8 @@
#ifndef NEC_COMMON_H
#define NEC_COMMON_H
#include <stdint.h>
extern int necv_dasm_one(char *buffer, uint32_t eip, const uint8_t *oprom, const uint8_t *decryption_table);
#endif // NEC_COMMON_H

View File

@ -8,6 +8,7 @@
*/
#include "emu.h"
#include "nec_common.h"
static const uint8_t *Iconfig;

View File

@ -44,6 +44,7 @@ typedef uint32_t DWORD;
#include "v25.h"
#include "v25priv.h"
#include "nec_common.h"
const device_type V25 = &device_creator<v25_device>;
const device_type V35 = &device_creator<v35_device>;
@ -413,8 +414,6 @@ void v25_common_device::execute_set_input(int irqline, int state)
offs_t v25_common_device::disasm_disassemble(char *buffer, offs_t pc, const uint8_t *oprom, const uint8_t *opram, uint32_t options)
{
extern int necv_dasm_one(char *buffer, uint32_t eip, const uint8_t *oprom, const uint8_t *decryption_table);
return necv_dasm_one(buffer, pc, oprom, m_v25v35_decryptiontable);
}