2 NEC TK-80BS (COMPO BS/80) Emulator 'eTK-80BS'
3 NEC TK-80 Emulator 'eTK-80'
4 NEC TK-85 Emulator 'eTK-85'
6 Author : Takeda.Toshiya
25 uint32_t MEMBUS::fetch_op(uint32_t addr, int *wait)
27 #if defined(_TK80BS) || defined(_TK80)
28 if(d_cpu->read_signal(SIG_I8080_INTE) != 0) {
29 if(config.dipswitch & 1) {
30 d_cpu->write_signal(SIG_I8080_INTR, 1, 1);
34 if(pc7 != 0 && ++count == 4) {
35 if(config.dipswitch & 1) {
36 d_cpu->write_signal(SIG_I8085_RST7, 1, 1);
40 return MEMORY::read_data8w(addr, wait);
44 void MEMBUS::write_signal(int id, uint32_t data, uint32_t mask)
46 if(id == SIG_MEMBUS_PC7) {
47 if((pc7 = data & mask) == 0) {
54 #define STATE_VERSION 1
56 bool MEMBUS::process_state(FILEIO* state_fio, bool loading)
58 if(!state_fio->StateCheckUint32(STATE_VERSION)) {
61 if(!state_fio->StateCheckInt32(this_device_id)) {
65 state_fio->StateValue(pc7);
66 state_fio->StateValue(count);
68 return MEMORY::process_state(state_fio, loading);