Previous 15994 Revisions Next

r10883 Monday 21st March, 2011 at 01:14:35 UTC by Angelo Salese
[X1]: Other notes, added graphic bitmap clip to black conditions
[src/mess/drivers]x1.c

src/mess/drivers/x1.c
r10882r10883
2929    per-game/program specific TODO:
3030    - Dragon Buster: it crashed to me once with a obj flag hang;
3131    - Exoa II - Warroid: goes offsync with the PCG beam positions;
32    - The Goonies (x1 only): goes offsync with the PCG beam positions;
3233    - Lupin 3 / Take the A-Train / Makai et al (basically anything that uses cz-8fb02 basic): uses x1turbo bankswitch memory RAM, doesn't load due of it;
3334    - Hydlide 3: can't get the user disk to work properly
3435    - Legend of Kage / Gandhara: has serious graphic artifacts, pcg doesn't scroll properly, dma bugs?
r10882r10883
4243    - Thexder: (x1turbo) Can't start a play, keyboard related issue?
4344   - Graphtol: sets up x1turboz paletteram, graphic garbage due of it;
4445   - Luna City: text gfxs looks doubled in y-axis
46   - Shiver Ghost: changes the vertical visible area during scrolling, and that doesn't work too well with current mc6845 core.
47   - New X1 Demo: needs partial updates to work properly;
4548
4649    Notes:
4750    - An interesting feature of the Sharp X-1 is the extended i/o bank. When the ppi port c bit 5
r10882r10883
529532               pri_mask_val = priority_mixer_pri(machine,color);
530533               if(pri_mask_val & pri) continue;
531534
535               if((color == 8 && state->scrn_reg.blackclip & 0x10) || (color == 9 && state->scrn_reg.blackclip & 0x20)) // bitmap color clip to black conditions
536                  color = 0;
537
532538               x1_draw_pixel(machine,bitmap,y*(mc6845_tile_height)+yi,x*8+xi,color,0,0);
533539            }
534540         }
r10882r10883
560566 *************************************/
561567
562568
563static UINT8 check_keyboard_press(running_machine *machine)
569static UINT16 check_keyboard_press(running_machine *machine)
564570{
565571   static const char *const portnames[3] = { "key1","key2","key3" };
566572   int i,port_i,scancode;
r10882r10883
613619   {
614620      if((f_key >> i) & 0x01)
615621      {
616         return scancode + ((keymod & 0x02) ? 0 : 5);
622         return (scancode + ((keymod & 0x02) ? 0 : 5)) | 0x100;
617623      }
618624      scancode++;
619625   }
r10882r10883
641647   if(check_keyboard_press(machine) != 0)
642648      val &= ~0x40;
643649
644   if((check_keyboard_press(machine) & 0xf0) == 0x70)
650   if(check_keyboard_press(machine) & 0x100) //function keys
645651      val &= ~0x80;
646652
647653   return val;
r10882r10883
891897      //case 0xe5: //timer irq clear
892898      //  break;
893899      case 0xe6: //key data readout
894         state->sub_val[0] = check_keyboard_shift(space->machine);
895         state->sub_val[1] = check_keyboard_press(space->machine);
900         state->sub_val[0] = check_keyboard_shift(space->machine) & 0xff;
901         state->sub_val[1] = check_keyboard_press(space->machine) & 0xff;
896902         state->sub_cmd_length = 2;
897903         break;
898904//      case 0xe7: // TV Control
r10882r10883
13721378
13731379static WRITE8_HANDLER( x1_blackclip_w )
13741380{
1381   /*
1382   -x-- ---- replace blanking duration with black
1383   --x- ---- replace bitmap palette 1 with black
1384   ---x ---- replace bitmap palette 0 with black
1385   ---- x--- enable text blackclip
1386   ---- -xxx palette color number for text black
1387   */
13751388   x1_state *state = space->machine->driver_data<x1_state>();
13761389   state->scrn_reg.blackclip = data;
1377   if(data & 0xf0)
1390   if(data & 0x40)
13781391      printf("Blackclip data access %02x\n",data);
13791392}
13801393
r10882r10883
18131826   state->vdisp = (device->machine->primary_screen->vpos() < vblank_line) ? 0x80 : 0x00;
18141827   state->vsync = (device->machine->primary_screen->vpos() < vblank_line) ? 0x00 : 0x04;
18151828
1829//   popmessage("%d",vblank_line);
1830
18161831   res = (input_port_read(device->machine, "SYSTEM") & 0x10) | state->sub_obf | state->vsync | state->vdisp;
18171832
18181833   //popmessage("%d",vblank_line);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team