public static void ym3812_start(int clock) { FMOpl.tl_tab = new int[0x1800]; FMOpl.sin_tab = new uint[0x1000]; //TODO: timer timer = new Timer.emu_timer[2]; int rate = clock / 72; FMOpl.ym3812_init(0, clock, rate); //TODO: timer FMOpl.ym3812_set_timer_handler(TimerHandler_3812); FMOpl.ym3812_set_irq_handler(IRQHandler_3812); FMOpl.ym3812_set_update_handler(_stream_update_3812); //TODO: timer timer[0] = Timer.timer_alloc_common(timer_callback_3812_0, "timer_callback_3812_0", false); //TODO: timer timer[1] = Timer.timer_alloc_common(timer_callback_3812_1, "timer_callback_3812_1", false); }
public static void ym3812_write_port_0_w(byte data) { FMOpl.ym3812_write(1, data); }
public static void ym3812_control_port_0_w(byte data) { FMOpl.ym3812_write(0, data); }