Previous 199869 Revisions Next

r26191 Saturday 16th November, 2013 at 08:54:00 UTC by Jürgen Buchmüller
Initialize KCOM just as Salto does. Don't run bitclock without disk command
[/branches/alto2/src/emu/cpu/alto2]a2disk.c

branches/alto2/src/emu/cpu/alto2/a2disk.c
r26190r26191
1010#include "alto2.h"
1111
1212
13#define   JKFF_FUNCTION   1   //!< define 1 to debug the JK flip-flops, 0 to use a lookup table
13#define   JKFF_FUNCTION   0   //!< define 1 to debug the JK flip-flops, 0 to use a lookup table
1414
1515#define   GET_KADDR_SECTOR(kaddr)         A2_GET16(kaddr,16, 0, 3)         //!< get sector number from address register
1616#define   PUT_KADDR_SECTOR(kaddr,val)      A2_PUT16(kaddr,16, 0, 3,val)      //!< put sector number into address register
r26190r26191
15331533 * the monoflop 52b external resistor and capacitor.
15341534 *
15351535 * The drive compares the cylinder number that is presented on
1536 * it's inputs against the current cylinder, and if they don't
1536 * its inputs against the current cylinder, and if they don't
15371537 * match steps into the corresponding direction.
15381538 *
15391539 * On the falling edge of a strobe, the drive sets the log_addx_interlock
r26190r26191
23202320#else
23212321   // TODO: verify current sector == requested sector and only then run the bitclk?
23222322   // HACK: no command, no bit clock
2323//   if (debug_read_mem(0521))
2323   if (debug_read_mem(0521))
23242324   {
23252325      // Make the CPU execution loop call disk_bitclk
23262326      m_bitclk_time = 0;
r26190r26191
23702370   m_dsk.seclate = 0;
23712371   m_dsk.ok_to_run = 0;
23722372
2373   m_dsk.kcom = 066000;
2374
23732375#if   USE_BITCLK_TIMER
23742376   m_dsk.bitclk_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(alto2_cpu_device::disk_bitclk),this));
23752377#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team