mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
Put necv_dasm_one() into a header file
This commit is contained in:
parent
0d17e0ff72
commit
dc4086847a
@ -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",
|
||||
|
8
src/devices/cpu/nec/nec_common.h
Normal file
8
src/devices/cpu/nec/nec_common.h
Normal 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
|
@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
#include "nec_common.h"
|
||||
|
||||
static const uint8_t *Iconfig;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user