Previous 15994 Revisions Next

r13041 Saturday 15th October, 2011 at 11:06:25 UTC by Curt Coder
[ABC1600] Added ABC bus slots. (nw)
[src/emu/machine]z8536.c
[src/mess/drivers]abc1600.c
[src/mess/includes]abc1600.h

src/emu/machine/z8536.c
r13040r13041
3535//  MACROS / CONSTANTS
3636//**************************************************************************
3737
38#define LOG 1
38#define LOG
3939
4040
4141// states
src/mess/includes/abc1600.h
r13040r13041
1313#include "machine/ram.h"
1414#include "machine/8530scc.h"
1515#include "machine/abc99.h"
16#include "machine/abcbus.h"
1617#include "machine/e0516.h"
1718#include "machine/nmc9306.h"
1819#include "machine/s1410.h"
src/mess/drivers/abc1600.c
r13040r13041
1010
1111    TODO:
1212
13    - login root fails with incorrect password
1413    - floppy
1514        - internal floppy is really drive 2, but wd17xx.c doesn't like having NULL drives
1615    - BUS0I/0X/1/2
16      - how to determine which bus is accessed?
1717    - short/long reset (RSTBUT)
1818    - CIO
1919        - vectored interrupts with status
r13040r13041
2323        - counter 1 disabled
2424        - counter 2 enabled, TC=000d, IE=0, output to PB0
2525        - counter 3 enabled, TC=9c40, IE=1
26    - hard disk (Xebec S1410)
26    - hard disk
27      - 4105 sasi interface card
28      - sasi interface
29      - Xebec S1410 card
2730
2831*/
2932
r13040r13041
140143   }
141144   else
142145   {
143      if (LOG) logerror("Unmapped read from virtual memory %06x\n", offset);
146      logerror("%s Unmapped read from virtual memory %06x\n", machine().describe_context(), offset);
144147   }
145148
146149   return data;
r13040r13041
167170   }
168171   else
169172   {
170      if (LOG) logerror("Unmapped write to virtual memory %06x : %02x\n", offset, data);
173      logerror("%s Unmapped write to virtual memory %06x : %02x\n", machine().describe_context(), offset, data);
171174   }
172175}
173176
r13040r13041
192195            break;
193196
194197         default:
195            logerror("Unmapped read from virtual I/O %06x\n", offset);
198            logerror("%s Unmapped read from virtual I/O %06x\n", machine().describe_context(), offset);
196199         }
197200      }
198201      else
r13040r13041
239242   else
240243   {
241244      // BUS0I, BUS0X, BUS1, BUS2
242      //UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f);
245      UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f);
243246
244247      switch ((offset >> 1) & 0x07)
245248      {
246249      case 0: // INP
250         logerror("%s INP %02x\n", machine().describe_context(), cs);
247251         break;
248252
249253      case 1: // STAT
254         logerror("%s STAT %02x\n", machine().describe_context(), cs);
250255         break;
251256
252257      case 2: // OPS
258         logerror("%s OPS %02x\n", machine().describe_context(), cs);
253259         break;
260         
261      default:
262         logerror("%s Unmapped read from virtual I/O %06x\n", machine().describe_context(), offset);
254263      }
255
256      logerror("Unmapped read from virtual I/O %06x\n", offset);
257264   }
258265
259266   return data;
r13040r13041
296303            }
297304            else
298305            {
299               logerror("Unmapped write to virtual I/O %06x : %02x\n", offset, data);
306               logerror("%s Unmapped write to virtual I/O %06x : %02x\n", offset, data);
300307            }
301308            break;
302309
r13040r13041
309316            break;
310317
311318         default:
312            logerror("Unmapped write to virtual I/O %06x : %02x\n", offset, data);
319            logerror("%s Unmapped write to virtual I/O %06x : %02x\n", machine().describe_context(), offset, data);
313320         }
314321      }
315322      else
r13040r13041
355362   }
356363   else
357364   {
358      //UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f);
365      UINT8 cs = (m_cs7 << 7) | ((offset >> 5) & 0x3f);
359366
360367      switch ((offset >> 1) & 0x07)
361368      {
362369      case 0: // OUT
370         logerror("%s OUT %02x %02x\n", machine().describe_context(), cs, data);
363371         break;
364372
365373      case 2: // C1
374         logerror("%s C1 %02x\n", machine().describe_context(), cs);
366375         break;
367376
368377      case 3: // C2
378         logerror("%s C2 %02x\n", machine().describe_context(), cs);
369379         break;
370380
371381      case 4: // C3
382         logerror("%s C3 %02x\n", machine().describe_context(), cs);
372383         break;
373384
374385      case 5: // C4
386         logerror("%s C4 %02x\n", machine().describe_context(), cs);
375387         break;
388         
389      default:
390         logerror("%s Unmapped write %02x to virtual I/O %06x\n", machine().describe_context(), data, offset);
376391      }
377
378      // BUS0I, BUS0X, BUS1, BUS2
379      logerror("Unmapped write %02x to virtual I/O %06x\n", data, offset);
380392   }
381393}
382394
r13040r13041
439451   if (PAGE_NONX)
440452   {
441453      logerror("Bus error %06x : %06x\n", offset, virtual_offset);
442      m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE);
443      m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE);
454      //m_maincpu->set_input_line(M68K_LINE_BUSERROR, ASSERT_LINE);
455      //m_maincpu->set_input_line(M68K_LINE_BUSERROR, CLEAR_LINE);
444456   }
445457
446458   *nonx = PAGE_NONX;
r13040r13041
14701482};
14711483
14721484
1485//-------------------------------------------------
1486//  ABCBUS_INTERFACE( abcbus_intf )
1487//-------------------------------------------------
14731488
1489static SLOT_INTERFACE_START( abc1600_abcbus_cards )
1490//   SLOT_INTERFACE("4105", LUXOR_4105) // SASI interface
1491//   SLOT_INTERFACE("4077", LUXOR_4077) // Winchester controller
1492SLOT_INTERFACE_END
1493
1494
1495static ABCBUS_INTERFACE( abcbus_intf )
1496{
1497   DEVCB_NULL,
1498   DEVCB_NULL,
1499   DEVCB_NULL,
1500   DEVCB_NULL
1501};
1502
1503
1504
14741505//**************************************************************************
14751506//  MACHINE INITIALIZATION
14761507//**************************************************************************
r13040r13041
15891620   MCFG_ABC99_ADD(abc99_intf)
15901621   MCFG_S1410_ADD()
15911622
1623   MCFG_ABCBUS_ADD(MC68008P8_TAG, abcbus_intf)
1624   MCFG_ABCBUS_SLOT_ADD( 1, "bus0i", abc1600_abcbus_cards, NULL, NULL)
1625   MCFG_ABCBUS_SLOT_ADD( 2, "bus0x", abc1600_abcbus_cards, NULL, NULL)
1626   MCFG_ABCBUS_SLOT_ADD( 3, "bus1", abc1600_abcbus_cards, NULL, NULL)
1627   MCFG_ABCBUS_SLOT_ADD( 4, "bus2", abc1600_abcbus_cards, NULL, NULL)
1628
15921629   // internal ram
15931630   MCFG_RAM_ADD(RAM_TAG)
15941631   MCFG_RAM_DEFAULT_SIZE("1M")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team