Previous 199869 Revisions Next

r26143 Wednesday 13th November, 2013 at 19:16:09 UTC by Jürgen Buchmüller
Initialize disk ready_timer early enough. Going fancy with Unicode glyphs.
[/branches/alto2/src/emu/cpu/alto2]a2disk.c

branches/alto2/src/emu/cpu/alto2/a2disk.c
r26142r26143
771771
772772jkff_t alto2_cpu_device::update_jkff(UINT8 s0, UINT8 s1)
773773{
774   static const char* raise_lower[2] = {"↗","↘"};
774775   UINT8 result = jkff_lookup[s1 & 63][ s0 & 63];
775776#if   ALTO2_DEBUG
776   LOG((LOG_DISK,8,"%s : ", jkff_name));
777   LOG((LOG_DISK,8,"%s\t: ", jkff_name));
777778   if ((s0 ^ result) & JKFF_CLK)
778      LOG((LOG_DISK,8," CLK:%d→%d", s0 & 1, result & 1));
779      LOG((LOG_DISK,8," CLK%s", raise_lower[result & 1]));
779780   if ((s0 ^ result) & JKFF_J)
780      LOG((LOG_DISK,8," J:%d→%d", (s0 >> 1) & 1, (result >> 1) & 1));
781      LOG((LOG_DISK,8," J%s", raise_lower[(result >> 1) & 1]));
781782   if ((s0 ^ result) & JKFF_K)
782      LOG((LOG_DISK,8," K:%d→%d", (s0 >> 2) & 1, (result >> 2) & 1));
783      LOG((LOG_DISK,8," K'%s", raise_lower[(result >> 2) & 1]));
783784   if ((s0 ^ result) & JKFF_S)
784      LOG((LOG_DISK,8," S:%d→%d", (s0 >> 3) & 1, (result >> 3) & 1));
785      LOG((LOG_DISK,8," S'%s", raise_lower[(result >> 3) & 1]));
785786   if ((s0 ^ result) & JKFF_C)
786      LOG((LOG_DISK,8," C:%d→%d", (s0 >> 4) & 1, (result >> 4) & 1));
787      LOG((LOG_DISK,8," C'%s", raise_lower[(result >> 4) & 1]));
787788   if ((s0 ^ result) & JKFF_Q)
788      LOG((LOG_DISK,8," Q:%d→%d", (s0 >> 5) & 1, (result >> 5) & 1));
789      LOG((LOG_DISK,8," Q%s", raise_lower[(result >> 5) & 1]));
789790   if ((s0 ^ result) & JKFF_Q0)
790      LOG((LOG_DISK,8," Q':%d→%d", (s0 >> 6) & 1, (result >> 6) & 1));
791      LOG((LOG_DISK,8," Q'%s", raise_lower[(result >> 6) & 1]));
791792   LOG((LOG_DISK,8,"\n"));
792793#endif
793794   return static_cast<jkff_t>(result);
r26142r26143
19431944   m_dsk.ready_mf31a = dhd ? dhd->get_ready_0() : 1;
19441945
19451946   /* start monoflop 31a, which resets ready_mf31a */
1946   if (!m_dsk.ready_timer)
1947      m_dsk.ready_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_ready_mf31a),this));
19481947   m_dsk.ready_timer->adjust(TW_READY, 1);
19491948   m_dsk.ready_timer->enable();
19501949}
r26142r26143
23372336   m_dsk.bitclk_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_bitclk),this));
23382337
23392338   m_dsk.seclate_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_seclate),this));
2340   m_dsk.seclate_timer->set_param(1);
23412339   m_dsk.seclate_timer->adjust(attotime::from_nsec(TW_SECLATE), 1);
23422340
23432341   m_dsk.ok_to_run_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_ok_to_run),this));
2344   m_dsk.ok_to_run_timer->set_param(1);
23452342   m_dsk.ok_to_run_timer->adjust(attotime::from_nsec(15 * ALTO2_UCYCLE), 1);
23462343
2344   m_dsk.ready_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_ready_mf31a),this));
2345   m_dsk.ready_timer->adjust(attotime::never, 0);
2346
23472347   diablo_hd_device* dhd;
23482348   for (int unit = 0; unit < diablo_hd_device::DIABLO_UNIT_MAX; unit++) {
23492349      dhd = m_drive[unit];

Previous 199869 Revisions Next


© 1997-2024 The MAME Team