Previous 15994 Revisions Next

r15690 Friday 27th July, 2012 at 20:13:37 UTC by Fabio Priuli
fixed digel804 to compile with the new ROC10937 device. please, LordN take a look if the system works as before.
[src/mess/drivers]digel804.c

src/mess/drivers/digel804.c
r15689r15690
7373        m_maincpu(*this, "maincpu"),
7474        m_terminal(*this, TERMINAL_TAG),
7575        m_speaker(*this, "speaker"),
76        m_acia(*this, "acia")
76        m_acia(*this, "acia"),
77        m_vfd(*this, "vfd")
7778      //, m_main_ram(*this, "main_ram")
7879      { }
7980
r15689r15690
8182   required_device<device_t> m_terminal;
8283   required_device<device_t> m_speaker;
8384   required_device<acia6551_device> m_acia;
85   required_device<roc10937_t> m_vfd;
8486   DECLARE_READ8_MEMBER( ip40 );
8587   DECLARE_WRITE8_MEMBER( op40 );
8688   DECLARE_WRITE8_MEMBER( op41 );
r15689r15690
161163static DRIVER_INIT( digel804 )
162164{
163165   digel804_state *state = machine.driver_data<digel804_state>();
164   ROC10937_init(0,0,0); // TODO: replace this with a proper device
165166   state->vfd_old = state->vfd_data = state->vfd_count = 0;
166167   state->m_speaker_state = 0;
167168   //state->port43_rtn = 0xEE;//0xB6;
r15689r15690
185186static MACHINE_RESET( digel804 )
186187{
187188   digel804_state *state = machine.driver_data<digel804_state>();
188   ROC10937_reset(0); // TODO: replace this with a proper device
189   state->m_vfd->reset();
189190   state->vfd_old = state->vfd_data = state->vfd_count = 0;
190191}
191192
r15689r15690
263264
264265    */
265266   // HACK to dump display contents to stderr
266   fprintf(stderr,"%s\n",ROC10937_get_string(0));
267//  FIXME : not sure what to do here with the new device! 201207
268//   fprintf(stderr,"%s\n",ROC10937_get_string(0));
267269#ifdef PORT43_R_VERBOSE
268270   logerror("Digel804: returning %02X for port 43 status read\n", port43_rtn);
269271#endif
r15689r15690
329331#ifdef VFD_VERBOSE
330332         logerror("Digel804: Full byte written to port 44 vfd: %02X '%c'\n", vfd_data, vfd_data);
331333#endif
332         ROC10937_newdata(0,vfd_data);
334         m_vfd->shift_data(vfd_data? 1 : 0);
333335         vfd_data = 0;
334336         vfd_count = 0;
335337      }
r15689r15690
570572   MCFG_CPU_IO_MAP(z80_io)
571573   MCFG_QUANTUM_TIME(attotime::from_hz(60))
572574   MCFG_MACHINE_RESET(digel804)
575   MCFG_ROC10937_ADD("vfd",0,RIGHT_TO_LEFT)
573576
574577   /* video hardware */
575578   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, digel804_terminal_intf)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team