Previous 15994 Revisions Next

r3661 Thursday 27th November, 2008 at 17:13:42 UTC by Nathan Woods
Reenabled ChannelF
[src/mess]mess.mak messdriv.c
[src/mess/drivers]channelf.c

src/mess/messdriv.c
r3660r3661
136136//   DRIVER( shmc1200 )
137137
138138   /* FAIRCHILD */
139//128u4   DRIVER( channelf )   /* Fairchild Channel F VES - 1976               */
139   DRIVER( channelf )   /* Fairchild Channel F VES - 1976               */
140140
141141   /* COLECO */
142142   DRIVER( coleco )   /* ColecoVision (Original BIOS)                  */
src/mess/mess.mak
r3660r3661
390390   $(MESSOBJ)/einis.a \
391391   $(MESSOBJ)/ep128.a \
392392   $(MESSOBJ)/exidy.a \
393   $(MESSOBJ)/fairch.a \
393394   $(MESSOBJ)/gce.a \
394395   $(MESSOBJ)/galaxy.a \
395396   $(MESSOBJ)/grundy.a \
r3660r3661
456457#   $(MESSOBJ)/epoch.a \
457458#   $(MESSOBJ)/epson.a \
458459#   $(MESSOBJ)/exeltel.a \
459#   $(MESSOBJ)/fairch.a \
460460#   $(MESSOBJ)/glasgow.a \
461461#   $(MESSOBJ)/gmaster.a \
462462#   $(MESSOBJ)/hp48.a \
src/mess/drivers/channelf.c
r3660r3661
4545   return (~ext | latch_state);
4646}
4747
48static READ8_HANDLER( channelf_port_0_r )
48static READ8_HANDLER( channelf_port_0_r )
4949{
50   return port_read_with_latch(input_port_read(machine, "PANEL"),latch[0]);
50   return port_read_with_latch(input_port_read(space->machine, "PANEL"),latch[0]);
5151}
5252
53static READ8_HANDLER( channelf_port_1_r )
53static READ8_HANDLER( channelf_port_1_r )
5454{
5555   UINT8 ext_value;
5656
5757   if ((latch[0] & 0x40) == 0)
5858   {
59      ext_value = input_port_read(machine, "RIGHT_C");
59      ext_value = input_port_read(space->machine, "RIGHT_C");
6060   }
6161   else
6262   {
63      ext_value = 0xc0 | input_port_read(machine, "RIGHT_C");
63      ext_value = 0xc0 | input_port_read(space->machine, "RIGHT_C");
6464   }
6565   return port_read_with_latch(ext_value,latch[1]);
6666}
6767
68static READ8_HANDLER( channelf_port_4_r )
68static READ8_HANDLER( channelf_port_4_r )
6969{
7070   UINT8 ext_value;
7171
7272   if ((latch[0] & 0x40) == 0)
7373   {
74      ext_value = input_port_read(machine, "LEFT_C");
74      ext_value = input_port_read(space->machine, "LEFT_C");
7575   }
7676   else
7777   {
r3660r3661
8080   return port_read_with_latch(ext_value,latch[2]);
8181}
8282
83static READ8_HANDLER( channelf_port_5_r )
83static READ8_HANDLER( channelf_port_5_r )
8484{
8585   return port_read_with_latch(0xff,latch[3]);
8686}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team