diff options
author | 2008-12-10 18:04:15 +0000 | |
---|---|---|
committer | 2008-12-10 18:04:15 +0000 | |
commit | 864cc4513b4ee5df10603b9a527ada6fbc2c0741 (patch) | |
tree | 2c3bc935ed91ddfa19b7915efbcf87dd214f3be3 /src/emu/cpu/pdp1/pdp1.h | |
parent | ebaf684f2e4debb7c822ae6953b174e78339092d (diff) |
Pointer-ified the PDP1 core.
Diffstat (limited to 'src/emu/cpu/pdp1/pdp1.h')
-rw-r--r-- | src/emu/cpu/pdp1/pdp1.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/emu/cpu/pdp1/pdp1.h b/src/emu/cpu/pdp1/pdp1.h index 372b5a58fe5..caeb5b6be41 100644 --- a/src/emu/cpu/pdp1/pdp1.h +++ b/src/emu/cpu/pdp1/pdp1.h @@ -23,15 +23,20 @@ enum #define pdp1_pulse_start_clear() cpu_set_reg(machine->cpu[0], PDP1_START_CLEAR, 0) #define pdp1_pulse_iot_done() cpu_set_reg(machine->cpu[0], PDP1_IO_COMPLETE, 0) +typedef void (*pdp1_extern_iot_func)(const device_config *device, int op2, int nac, int mb, int *io, int ac); +typedef void (*pdp1_read_binary_word_func)(const device_config *device); +typedef void (*pdp1_io_sc_func)(const device_config *device); + + typedef struct _pdp1_reset_param_t pdp1_reset_param_t; struct _pdp1_reset_param_t { /* callbacks for iot instructions (required for any I/O) */ - void (*extern_iot[64])(int op2, int nac, int mb, int *io, int ac); + pdp1_extern_iot_func extern_iot[64]; /* read a word from the perforated tape reader (required for read-in mode) */ - void (*read_binary_word)(void); + pdp1_read_binary_word_func read_binary_word; /* callback called when sc is pulsed: IO devices should reset */ - void (*io_sc_callback)(void); + pdp1_io_sc_func io_sc_callback; /* 0: no extend support, 1: extend with 15-bit address, 2: extend with 16-bit address */ int extend_support; @@ -46,9 +51,6 @@ struct _pdp1_reset_param_t /* PUBLIC FUNCTIONS */ CPU_GET_INFO( pdp1 ); -#define READ_PDP_18BIT(A) ((signed)memory_read_dword_32be(pdp1.program, (A)<<2)) -#define WRITE_PDP_18BIT(A,V) (memory_write_dword_32be(pdp1.program, (A)<<2,(V))) - #define AND 001 #define IOR 002 #define XOR 003 |