Previous 15994 Revisions Next

r1971 Wednesday 12th March, 2008 at 19:44:03 UTC by Wilbert Pol
[EINSTEIN] Removed mslegacy.h dependency and cleaned up 80 column card code a bit.
[src/mess/drivers]einstein.c

src/mess/drivers/einstein.c
r1970r1971
8080
8181#include "driver.h"
8282#include "deprecat.h"
83#include "mslegacy.h"
8483#include "machine/z80ctc.h"
8584#include "machine/z80pio.h"
8685#include "machine/z80sio.h"
r1970r1971
113112static int einstein_keyboard_line = 0;
114113static int einstein_keyboard_data = 0x0ff;
115114
115static mc6845_t   *mc6845;
116116
117117#define EINSTEIN_DUMP_RAM
118118
r1970r1971
273273   /* 2K RAM */
274274   einstein_80col_ram = auto_malloc(2048);
275275
276   /* initialise 6845 */
277   crtc6845_config( 0, &einstein_crtc6845_interface );
278
279276   einstein_80col_state=(1<<2)|(1<<1);
280277}
281278
r1970r1971
316313         einstein_80col_ram_w(machine, offset,data);
317314         break;
318315      case 8:
319         crtc6845_0_address_w(machine, offset,data);
316         mc6845_address_w( devtag_get_token(machine, MC6845, "crtc"), offset, data );
320317         break;
321318      case 9:
322         crtc6845_0_register_w(machine, offset,data);
319         mc6845_register_w( devtag_get_token(machine, MC6845, "crtc"), offset, data );
323320         break;
324321      default:
325322         break;
r1970r1971
14711468static MACHINE_RESET( einstein2 )
14721469{
14731470   MACHINE_RESET_CALL(einstein);
1471   mc6845 = devtag_get_token(machine, MC6845, "crtc");
14741472   einstein_80col_init();
14751473}
14761474
r1970r1971
17071705static VIDEO_UPDATE( einstein2 )
17081706{
17091707   VIDEO_UPDATE_CALL(tms9928a);
1710   VIDEO_UPDATE_CALL(crtc6845);
1708   mc6845_update(mc6845, bitmap, cliprect);
17111709//  VIDEO_UPDATE_CALL(einstein_80col);
17121710   return 0;
17131711}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team