diff options
author | 2016-11-16 08:07:33 -0500 | |
---|---|---|
committer | 2016-11-16 08:07:33 -0500 | |
commit | dc4086847a8aa57a3cbf8271c9692e664d213d28 (patch) | |
tree | 5c98878497ed507f0cc754fc1e9072fee5df154f /src/devices/cpu | |
parent | 0d17e0ff72d55673186df40fa757383a7d3042fb (diff) |
Put necv_dasm_one() into a header file
Diffstat (limited to 'src/devices/cpu')
-rw-r--r-- | src/devices/cpu/nec/nec_common.h | 8 | ||||
-rw-r--r-- | src/devices/cpu/nec/necdasm.cpp | 1 | ||||
-rw-r--r-- | src/devices/cpu/nec/v25.cpp | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/devices/cpu/nec/nec_common.h b/src/devices/cpu/nec/nec_common.h new file mode 100644 index 00000000000..c5be3f85651 --- /dev/null +++ b/src/devices/cpu/nec/nec_common.h @@ -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 diff --git a/src/devices/cpu/nec/necdasm.cpp b/src/devices/cpu/nec/necdasm.cpp index 78e3badea8e..0500b9e52b6 100644 --- a/src/devices/cpu/nec/necdasm.cpp +++ b/src/devices/cpu/nec/necdasm.cpp @@ -8,6 +8,7 @@ */ #include "emu.h" +#include "nec_common.h" static const uint8_t *Iconfig; diff --git a/src/devices/cpu/nec/v25.cpp b/src/devices/cpu/nec/v25.cpp index 6c19555718c..ebce1dbaa90 100644 --- a/src/devices/cpu/nec/v25.cpp +++ b/src/devices/cpu/nec/v25.cpp @@ -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); } |