Previous 15994 Revisions Next

r12832 Tuesday 13th September, 2011 at 05:22:55 UTC by Jonathan Gevaryahu
Start to duct-tape some organs to the Tandberg skeleton driver and fix some memory maps (fdccpu in particular). It still doesn't do very much now but does more than it did before. [Lord Nightmare]
[src/mess/drivers]tdv2324.c

src/mess/drivers/tdv2324.c
r12831r12832
33    Tandberg TDV2324
44
55    Skeleton driver
6    By Curt Coder with some work by Lord Nightmare
7
8   Status:
9   * Main cpu is currently hacked to read i/o port 0xE6 as 0x10;
10     it then seems to copy code to a ram area then jumps there
11     (there may be some sort of overlay/banking mess going on to allow full 64kb of ram)
12     The cpu gets stuck reading i/o port 0x30 in a loop.
13     - interrupts and sio lines are not hooked up
14   * Sub cpu does a bunch of unknown i/o accesses and also tries to
15     sequentially read chunk of address space which it never writes to;
16     this seems likely to be a shared ram or i/o mapped area especially since it seems
17     to write to i/o port 0x60 before trying to read there.
18     - interrupts and sio lines are not hooked up
19   * Fdc cpu starts, does a rom checksum (which passes) and tests a ram area
20     
621   
22   Board Notes:
723   Mainboard (pictures P1010036 & P1010038)
824   *28-pin: D27128, L4267096S,...(occluded by sticker: "965268 1")
925   *40-pin: TMS9937NL, DB 336, ENGLAND
r12831r12832
2743   *40-pin: WDC '79, FD1797PL-02, 8342 16
2844   *14-pin: MC4024P, MG 8341
2945
46
3047*/
48/*
49'subcpu' (17CD): unmapped i/o memory write to 23 = 36 & FF
50'subcpu' (17D1): unmapped i/o memory write to 23 = 76 & FF
51'subcpu' (17D5): unmapped i/o memory write to 23 = B6 & FF
52'subcpu' (17DB): unmapped i/o memory write to 20 = 1A & FF
53'subcpu' (17DE): unmapped i/o memory write to 20 = 00 & FF
54'subcpu' (17E0): unmapped i/o memory write to 3E = 00 & FF
55'subcpu' (17E2): unmapped i/o memory write to 3A = 00 & FF
56'subcpu' (17E6): unmapped i/o memory write to 30 = 74 & FF
57'subcpu' (17EA): unmapped i/o memory write to 31 = 7F & FF
58'subcpu' (17EE): unmapped i/o memory write to 32 = 6D & FF
59'subcpu' (17F2): unmapped i/o memory write to 33 = 18 & FF
60'subcpu' (17F6): unmapped i/o memory write to 34 = 49 & FF
61'subcpu' (17FA): unmapped i/o memory write to 35 = 20 & FF
62'subcpu' (17FE): unmapped i/o memory write to 36 = 18 & FF
63'subcpu' (1801): unmapped i/o memory write to 3C = 00 & FF
64'subcpu' (1803): unmapped i/o memory write to 3C = 00 & FF
65'subcpu' (1805): unmapped i/o memory write to 3E = 00 & FF
66'subcpu' (0884): unmapped i/o memory write to 10 = 97 & FF
67'subcpu' (0888): unmapped i/o memory write to 10 = 96 & FF
3168
69'fdccpu' (E004): unmapped program memory read from 3C05 & FF
70'fdccpu' (E007): unmapped program memory read from C000 & FF
71'fdccpu' (E00A): unmapped program memory read from A000 & FF
72'fdccpu' (E012): unmapped program memory write to F000 = D0 & FF
73'fdccpu' (E015): unmapped program memory read from 3801 & FF
74'fdccpu' (E018): unmapped program memory read from 3C06 & FF
75'fdccpu' (E01B): unmapped program memory read from 3C04 & FF
76
77'fdccpu' (E070): unmapped program memory write to 2101 = 01 & FF
78'fdccpu' (E07C): unmapped program memory read from 6000 & FF
79'fdccpu' (E07F): unmapped program memory read from 380D & FF
80'fdccpu' (E082): unmapped program memory read from 380F & FF
81'fdccpu' (E085): unmapped program memory read from 3803 & FF
82'fdccpu' (E08B): unmapped program memory write to 6000 = 08 & FF
83'fdccpu' (E08E): unmapped program memory write to 8000 = 08 & FF
84'fdccpu' (E091): unmapped program memory write to 6000 = 00 & FF
85'fdccpu' (E099): unmapped program memory write to F800 = 55 & FF
86...
87*/
88
89
3290#define ADDRESS_MAP_MODERN
3391
3492#include "emu.h"
r12831r12832
4199{
42100public:
43101   tdv2324_state(const machine_config &mconfig, device_type type, const char *tag)
44      : driver_device(mconfig, type, tag) { }
102      : driver_device(mconfig, type, tag),
103        m_maincpu(*this, "maincpu"),
104        m_subcpu(*this, "subcpu"),
105        m_fdccpu(*this, "fdccpu")
106      { }
45107
108   required_device<cpu_device> m_maincpu;
109   required_device<cpu_device> m_subcpu;
110   required_device<cpu_device> m_fdccpu;
111   DECLARE_READ8_MEMBER( tdv2324_main_io_e6 );
46112   virtual void video_start();
47113   virtual bool screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect);
48114};
49115
116/* Read/Write handlers */
117
118// Not sure what this is for, i/o read at 0xE6 on maincpu, post fails if it does not return bit 4 set
119READ8_MEMBER( tdv2324_state::tdv2324_main_io_e6 )
120{
121   return 0x10; // TODO: this should actually return something meaningful, for now is enough to pass early boot test
122}
123
50124/* Memory Maps */
51125
52126static ADDRESS_MAP_START( tdv2324_mem, AS_PROGRAM, 8, tdv2324_state )
53   AM_RANGE(0x0000, 0x07ff) AM_ROM AM_REGION("maincpu", 0)
127   AM_RANGE(0x0000, 0x07ff) AM_MIRROR(0x0800) AM_ROM AM_REGION("maincpu", 0)
128   /* when copying code to 4000 area it runs right off the end of rom;
129    * I'm not sure if its supposed to mirror or read as open bus */
130   AM_RANGE(0x4000, 0x5fff) AM_RAM // 0x4000 has the boot code copied to it, 5fff and down are the stack
131   AM_RANGE(0x6000, 0x6fff) AM_RAM // used by the relocated boot code; shared?
54132ADDRESS_MAP_END
55133
134static ADDRESS_MAP_START( tdv2324_io, AS_IO, 8, tdv2324_state )
135   //ADDRESS_MAP_GLOBAL_MASK(0xff)
136   /* 0x30 is read by main code and if high bit isn't set at some point it will never get anywhere */
137   /* e0, e2, e8, ea are written to */
138   /* 30, e6 and e2 are readable */
139   AM_RANGE(0xE6,0xE6) AM_READ(tdv2324_main_io_e6) // bit 4 is a status for something, post will not continue until it returns 1
140ADDRESS_MAP_END
141
56142static ADDRESS_MAP_START( tdv2324_sub_mem, AS_PROGRAM, 8, tdv2324_state )
57143   AM_RANGE(0x0000, 0x3fff) AM_ROM AM_REGION("subcpu", 0)
144   AM_RANGE(0x4000, 0x47ff) AM_RAM // ram exists at least here, acts as stack?
145   AM_RANGE(0x5000, 0x503f) AM_RAM // subcpu reads here (5000-5021) without writing first, implies this ram is shared
146   AM_RANGE(0x6000, 0x7fff) AM_RAM // it floodfills this area with 0; is this a framebuffer? or shared ram?
58147ADDRESS_MAP_END
59148
149static ADDRESS_MAP_START( tdv2324_sub_io, AS_IO, 8, tdv2324_state )
150   //ADDRESS_MAP_GLOBAL_MASK(0xff)
151   /* 20, 23, 30-36, 38, 3a, 3c, 3e, 60, 70 are written to */
152   /* 30-36 may be tms9937 */
153   /* 60 may be a shared ram semaphore as it writes it immediately before reading the 5000 area */
154ADDRESS_MAP_END
155
60156static ADDRESS_MAP_START( tdv2324_fdc_mem, AS_PROGRAM, 8, tdv2324_state )
61   AM_RANGE(0x0000, 0x1fff) AM_ROM AM_REGION("fdccpu", 0)
157   AM_RANGE(0x0000, 0x001f) AM_RAM // on-6802-die ram (optinally battery backed)
158   AM_RANGE(0x0020, 0x007f) AM_RAM // on-6802-die ram
159   AM_RANGE(0x0080, 0x07ff) AM_RAM // the fdc cpu explicitly tests this area with A5,5A pattern after the rom check
160   AM_RANGE(0xe000, 0xffff) AM_ROM AM_REGION("fdccpu", 0)
62161ADDRESS_MAP_END
63162
64163/* Input Ports */
r12831r12832
99198   /* basic system hardware */
100199   MCFG_CPU_ADD("maincpu", I8085A, 4000000)
101200   MCFG_CPU_PROGRAM_MAP(tdv2324_mem)
201   MCFG_CPU_IO_MAP(tdv2324_io)
102202   MCFG_CPU_CONFIG(i8085_intf)
103203
104204   MCFG_CPU_ADD("subcpu", I8085A, 4000000)
105205   MCFG_CPU_PROGRAM_MAP(tdv2324_sub_mem)
206   MCFG_CPU_IO_MAP(tdv2324_sub_io)
106207   MCFG_CPU_CONFIG(i8085_sub_intf)
107208
108209   MCFG_CPU_ADD("fdccpu", M6802, 4000000)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team