--- /dev/null
+cmake_minimum_required (VERSION 2.6)
+
+message("* vm/j3100")
+
+set(VM_J3100_LIB_SRCS
+ display.cpp
+ dmareg.cpp
+ floppy.cpp
+ j3100.cpp
+ keyboard.cpp
+ memory.cpp
+ sasi.cpp
+ slkeyboard.cpp
+ slmemory.cpp
+ slsystem.cpp
+ system.cpp
+)
+
+add_library(vm_j3100
+ ${VM_J3100_LIB_SRCS}
+)
\ No newline at end of file
case 0x89:
d_dma2->write_signal(SIG_I8237_BANK2, data >> 1, 0x7f);
break;
- case 0x89:
+ case 0x8a:
d_dma2->write_signal(SIG_I8237_BANK3, data >> 1, 0x7f);
break;
- case 0x89:
+ case 0x8b:
d_dma2->write_signal(SIG_I8237_BANK1, data >> 1, 0x7f);
break;
- case 0x89:
+ case 0x8f:
d_dma2->write_signal(SIG_I8237_BANK0, data >> 1, 0x7f);
break;
#endif
0x2e8, 0x42e8, 0x82e8, 0xc2e8,
#endif
};
+#ifdef _MSC_VER
for(int i = 0; i < _countof(ems_addr); i++) {
+#else
+ for(int i = 0; i < (sizeof(ems_addr) / sizeof(int)); i++) {
+#endif
io->set_iomap_single_rw(ems_addr[i], memory);
#ifdef TYPE_SL
io->set_iomap_single_w(ems_addr[i] + 1, memory);
return NULL;
}
+
+void VM::register_frame_event(DEVICE* dev)
+{
+ this->event->register_frame_event(dev);
+}
+
// ----------------------------------------------------------------------------
// drive virtual machine
// ----------------------------------------------------------------------------
bool now_skip();
void update_config();
+ void register_frame_event(DEVICE* dev);
// ----------------------------------------
// for each device
kbic_cmd = kbsc_cmd = -1;
cmd_param->clear();
kbic_status = 0x12;
+ cmd_byte = 0x00;
}
void KEYBOARD::write_io8(uint32 addr, uint32 data)
uint8 recv_data;
int kbic_cmd, kbsc_cmd;
- FIFO* cmd_param
+ FIFO* cmd_param;
uint8 kbic_status;
+ uint8 cmd_byte;
public:
KEYBOARD(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
void write_io8(uint32 addr, uint32 data);
uint32 read_io8(uint32 addr);
void event_frame();
+ void process_cmd();
// unique functions
void set_context_pic(DEVICE* device)
#include "../../emu.h"
#include "../device.h"
-#define SIG_SYSTEM_TC2O
+#define SIG_SYSTEM_TC2O 1
class SYSTEM : public DEVICE
{
#endif
// TOSHIBA J-3100GT
-#ifdef _J3100SL
+#ifdef _J3100GT
#include "j3100/j3100.h"
#endif