Previous 199869 Revisions Next

r34753 Friday 30th January, 2015 at 22:33:02 UTC by Couriersud
Merge branch 'master' of https://github.com/mamedev/mame.git
[src/emu/cpu/amis2000]amis2000.c amis2000.h amis2000op.inc
[src/mame/drivers]comebaby.c

trunk/src/emu/cpu/amis2000/amis2000.c
r243264r243265
55  American Microsystems, Inc.(AMI) S2000-family 4-bit MCU cores, introduced late 1970s
66 
77  TODO:
8  - x
8  - unemulated opcodes (need more testing material)
9  - support external program map
10  - add 50/60hz timer
911  - add S2200/S2400
1012
1113*/
r243264r243265
147149   m_e = 0;
148150   m_i = 0;
149151   m_k = 0;
152   m_d = 0;
153   m_a = 0;
150154
151155   // register for savestates
152156   save_item(NAME(m_callstack));
r243264r243265
164168   save_item(NAME(m_e));
165169   save_item(NAME(m_i));
166170   save_item(NAME(m_k));
171   save_item(NAME(m_d));
172   save_item(NAME(m_a));
167173
168174   // register state for debugger
169175   state_add(S2000_PC,     "PC",     m_pc    ).formatstr("%04X");
r243264r243265
190196   m_pc = 0;
191197   m_skip = false;
192198   m_op = 0;
199   
200   // clear i/o
201   m_i = 0;
202   m_k = 0;
203   m_d = 0; m_write_d(0, 0, 0xff);
204   m_a = 0; m_write_a(0, 0, 0xffff);
193205}
194206
195207
trunk/src/emu/cpu/amis2000/amis2000.h
r243264r243265
9191   UINT8 m_e;                  // 4-bit generic register
9292   UINT8 m_i;                  // 4-bit i-pins latch
9393   UINT8 m_k;                  // 4-bit k-pins latch
94   UINT8 m_d;                  // 8-bit d-pins latch
95   UINT16 m_a;                 // 13-bit a-pins latch (master strobe latch)
9496
9597   devcb_read8 m_read_k;
9698   devcb_read8 m_read_i;
trunk/src/emu/cpu/amis2000/amis2000op.inc
r243264r243265
187187void amis2000_device::op_disb()
188188{
189189   // DISB: set D-latch to ACC and RAM directly
190   op_illegal();
190   m_d = m_acc | ram_r() << 4;
191   m_write_d(0, m_d, 0xff);
192   // TODO: exit from floating mode on D-pins
191193}
192194
193195void amis2000_device::op_disn()
194196{
195   // DISN: set D-latch to ACC+carry via segment decoder
196   op_illegal();
197   // DISN: set D-latch to ACC+carry via on-die segment decoder
198   static const UINT8 lut_segment_decoder[0x10] =
199   {
200      // 0-F digits in bit order [DP]abcdefg
201      0x7e, 0x30, 0x6d, 0x79, 0x33, 0x5b, 0x5f, 0x70, 0x7f, 0x7b, 0x77, 0x1f, 0x4e, 0x3d, 0x4f, 0x47
202   };
203   m_d = lut_segment_decoder[m_acc] | (m_carry ? 0x80 : 0x00);
204   m_write_d(0, m_d, 0xff);
205   // TODO: exit from floating mode on D-pins
197206}
198207
199208void amis2000_device::op_mvs()
200209{
201210   // MVS: output master strobe latch to A-pins
202   op_illegal();
211   m_write_a(0, m_a, 0xffff);
212   // TODO: enter floating mode on D-pins
203213}
204214
205215void amis2000_device::op_psh()
206216{
207217   // PSH: preset high(BL) master strobe latch
208   op_illegal();
218   switch (m_bl)
219   {
220      case 0xd:
221         // set multiplex operation
222         // ?
223         break;
224
225      case 0xe:
226         // exit from floating mode on D-pins
227         // ?
228         break;
229
230      case 0xf:
231         // set all latch bits high
232         m_a = 0x1fff;
233         break;
234
235      default:
236         // set selected latch bit high
237         m_a |= (1 << m_bl);
238         break;
239   }
209240}
210241
211242void amis2000_device::op_psl()
212243{
213244   // PSL: preset low(BL) master strobe latch
214   op_illegal();
245   switch (m_bl)
246   {
247      case 0xd:
248         // set static operation
249         // ?
250         break;
251
252      case 0xe:
253         // enter floating mode on D-pins
254         // ?
255         break;
256
257      case 0xf:
258         // set all latch bits low
259         m_a = 0;
260         break;
261
262      default:
263         // set selected latch bit low
264         m_a &= ~(1 << m_bl);
265         break;
266   }
215267}
216268
217269void amis2000_device::op_eur()
trunk/src/mame/drivers/comebaby.c
r243264r243265
22  (c) 2000 ExPotato Co. Ltd (Excellent Potato)
33
44TODO:
5can't be emulated without proper mb bios
5Can't be emulated without proper motherboard BIOS
66
7  There also appears to be a sequel which may be running on the same hardware
7  There also appears to be a sequel which may be running on the same hardware, which might not have been released.
88  Come On Baby - Ballympic Heroes!  (c) 2001
9 
10  Other games in this series include:
11  Come On Baby 2 (c) 2002
12  Come On Baby Jr (c) 2003 (which seems to be otherwise identical to Come On Baby but in a smaller cabinet)
13  Come On Baby 2 Jr (c) 2003 (which seems to be otherwise identical to Come On Baby 2 but in a smaller cabinet)
14  These may or may not be on identical hardware.
915
1016  This is a Korean PC based board running Windows.  The game runs fully from
1117  the hard disk making these things rather fragile and prone to damage.
r243264r243265
1420  just a skeleton placeholder for the CHD dump of the hard disk.
1521
1622  The donor PC looks like a standard Windows98 setup.
17  The only exceptions I see are that there's a game logo.sys/logo.bmp in the
23  The only exceptions we see are that there's a game logo.sys/logo.bmp in the
1824  root directory to hide the Windows98 startup screen, and a shortcut to
1925  the game in the startup programs.
2026  Also of interest, Windows98 was installed from a setup folder on the HD.


Previous 199869 Revisions Next


© 1997-2024 The MAME Team