diff options
author | 2008-12-08 08:41:51 +0000 | |
---|---|---|
committer | 2008-12-08 08:41:51 +0000 | |
commit | d4e2eb24720e5c3f99949cd0e8081d70feac94a5 (patch) | |
tree | 4e32eba434cc9b459ee9fd3204c7a9b37fc9d8d3 /src/emu/cpu/z8000/z8000tbl.c | |
parent | b4470a0bd7db19b344b03df85eebd515795c35c2 (diff) |
Pointer-ified the Z8000 core.
Diffstat (limited to 'src/emu/cpu/z8000/z8000tbl.c')
-rw-r--r-- | src/emu/cpu/z8000/z8000tbl.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/emu/cpu/z8000/z8000tbl.c b/src/emu/cpu/z8000/z8000tbl.c index 8e1afc7a87f..56f9fdff2a3 100644 --- a/src/emu/cpu/z8000/z8000tbl.c +++ b/src/emu/cpu/z8000/z8000tbl.c @@ -535,20 +535,11 @@ static const Z8000_init table[] = { {0, 0, 0, 0, 0,0, 0}, }; -CPU_INIT( z8000 ) +void z8000_init_tables(void) { - int i; const Z8000_init *init; - - Z.irq_callback = irqcallback; - Z.device = device; - Z.program = memory_find_address_space(device, ADDRESS_SPACE_PROGRAM); - Z.io = memory_find_address_space(device, ADDRESS_SPACE_IO); - - /* already initialized? */ - if( z8000_exec ) - return; - + int i; + /* allocate the opcode execution and disassembler array */ z8000_exec = (Z8000_exec *)malloc(0x10000 * sizeof(Z8000_exec)); if( !z8000_exec ) @@ -589,7 +580,7 @@ CPU_INIT( z8000 ) } } -void z8000_deinit(void) +void z8000_deinit_tables(void) { if( !z8000_exec ) return; |