Previous 199869 Revisions Next

r32111 Saturday 13th September, 2014 at 22:56:36 UTC by Michael Zapf
(MESS) ti99: Changed logging for HFDC and interleave for MFM. (nw)
[src/emu/bus/ti99_peb]hfdc.c
[src/lib/formats]ti99_dsk.c

trunk/src/emu/bus/ti99_peb/hfdc.c
r32110r32111
4141    27C128        - EPROM 16K x 8
4242
4343    Author: Michael Zapf
44    June 2014: Rewritten for modern floppy implementation
44    September 2014: Rewritten for modern floppy implementation
4545
4646    WORK IN PROGRESS
4747
r32110r32111
8080#define TRACE_LINES 0
8181#define TRACE_MOTOR 0
8282#define TRACE_DMA 0
83#define TRACE_INT 0
8384
8485// =========================================================================
8586
r32110r32111
543544      }
544545      else
545546      {
546         // HD selected
547547         index = slog2((data>>4) & 0x0f);
548548         if (index == -1)
549549         {
550            if (TRACE_LINES) logerror("%s: Unselect all drives\n", tag());
550            if (TRACE_LINES) logerror("%s: Unselect all HD drives\n", tag());
551            connect_floppy_unit(index);
551552         }
552553         else
553554         {
555            // HD selected
554556            if (TRACE_LINES) logerror("%s: Select hard disk WDS%d\n", tag(), index);
555557            //          if (index>=0) m_hdc9234->connect_hard_drive(m_harddisk_unit[index-1]);
556558         }
r32110r32111
576578      // Output the step pulse to the selected floppy drive
577579      if (m_current_floppy != NULL)
578580      {
581         m_current_floppy->ss_w(data & 0x01);
579582         m_current_floppy->dir_w((data & 0x20)==0);
580583         m_current_floppy->stp_w((data & 0x10)==0);
581584      }
r32110r32111
670673WRITE_LINE_MEMBER( myarc_hfdc_device::intrq_w )
671674{
672675   m_irq = (line_state)state;
673   if (TRACE_LINES) logerror("%s: INT pin from controller = %d, propagating to INTA*\n", tag(), state);
676   if (TRACE_INT) logerror("%s: INT pin from controller = %d, propagating to INTA*\n", tag(), state);
674677
675678   // Set INTA*
676679   // Signal from SMC is active high, INTA* is active low; board inverts signal
r32110r32111
684687*/
685688WRITE_LINE_MEMBER( myarc_hfdc_device::dmarq_w )
686689{
687   if (TRACE_LINES) logerror("%s: DMARQ pin from controller = %d\n", tag(), state);
690   if (TRACE_DMA) logerror("%s: DMARQ pin from controller = %d\n", tag(), state);
688691   if (state == ASSERT_LINE)
689692   {
690693      m_hdc9234->dmaack(ASSERT_LINE);
r32110r32111
704707*/
705708READ8_MEMBER( myarc_hfdc_device::read_buffer )
706709{
707   logerror("%s: Read access to onboard SRAM at %04x\n", tag(), m_dma_address);
710   if (TRACE_DMA) logerror("%s: Read access to onboard SRAM at %04x\n", tag(), m_dma_address);
708711   UINT8 value = m_buffer_ram[m_dma_address & 0x7fff];
709712   m_dma_address = (m_dma_address+1) & 0x7fff;
710713   return value;
trunk/src/lib/formats/ti99_dsk.c
r32110r32111
284284{
285285   static floppy_image_format_t::desc_e desc_mfm[] =
286286   {
287      { SECTOR_INTERLEAVE_SKEW, 6, 6 },         // Possible ilv: 0, 4, 6, 10, 12, 16.
287      { SECTOR_INTERLEAVE_SKEW, 4, 0 },         // Possible ilv: 0, 4, 6, 10, 12, 16.
288288      { MFM, 0x4e, f.gap_1 },                  // track lead-in
289289      { SECTOR_LOOP_START, 0, 17 },            // 18 sectors
290290         { CRC_CCITT_START, 1 },

Previous 199869 Revisions Next


© 1997-2024 The MAME Team