Previous 15994 Revisions Next

r6866 Saturday 2nd January, 2010 at 13:10:06 UTC by Robbbert
[KAYPRO] Kaypro10 boots, but there are video problems, and drive B doesn't work.
[src/mess/drivers]kaypro.c
[src/mess/machine]kaypro.c
[src/mess/video]kaypro.c

src/mess/video/kaypro.c
r6865r6866
262262   visarea.max_x = width-1;
263263   visarea.min_y = 0;
264264   visarea.max_y = height-1;
265   if ((width < 640) && (height < 400) && (bytes < 0x800))   /* bounds checking to prevent an assert or violation */
265   if ((width < 800) && (height < 400) && (bytes < 0x800))   /* bounds checking to prevent an assert or violation */
266266      video_screen_set_visarea(machine->primary_screen, 0, width, 0, height);
267267}
268268
src/mess/machine/kaypro.c
r6865r6866
4242static WRITE8_DEVICE_HANDLER( pio_system_w )
4343{
4444/*  d7 bank select
45    d6 disk drive motors - not emulated
45    d6 disk drive motors - not emulated (0=on)
4646    d5 double-density enable (0=double density)
4747    d4 Centronics strobe
4848    d2 side select (1=side 1)
r6865r6866
155155/*  d7 bank select
156156    d6 alternate character set (write only)
157157    d5 double-density enable
158    d4 disk drive motors - not emulated
158    d4 disk drive motors (1=on)
159159    d3 Centronics strobe
160160    d2 side select (appears that 0=side 1?)
161161    d1 drive B
r6865r6866
194194   output_set_value("ledA",(data & 1) ? 1 : 0);      /* LEDs in artwork */
195195   output_set_value("ledB",(data & 2) ? 1 : 0);
196196
197   /* CLEAR_LINE means to turn motors on */
198   floppy_mon_w(floppy_get_device(space->machine, 0), (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
199   floppy_mon_w(floppy_get_device(space->machine, 1), (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
200
197201   kaypro_system_port = data;
198202}
199203
src/mess/drivers/kaypro.c
r6865r6866
210210};
211211static const floppy_config kaypro2x_floppy_config =
212212{
213   DEVCB_LINE(wd17xx_idx_w),
213214   DEVCB_NULL,
214215   DEVCB_NULL,
215216   DEVCB_NULL,
216217   DEVCB_NULL,
217   DEVCB_NULL,
218218   FLOPPY_DRIVE_DS_80,
219219   FLOPPY_OPTIONS_NAME(kaypro2x),
220220   DO_NOT_KEEP_GEOMETRY

Previous 15994 Revisions Next


© 1998-2018 The MESS Team