Previous 15994 Revisions Next

r12946 Tuesday 27th September, 2011 at 14:41:02 UTC by Curt Coder
[ABC1600] Positioned picture correctly and implemented FRAME POL bit. (nw)
[src/mess/video]abc1600.c

src/mess/video/abc1600.c
r12945r12946
22
33    TODO:
44
5    - FRAME POL
65    - landscape/portrait mode
7    - position image based on vsync/hsync
86
97*/
108
r12945r12946
3634#define REPLACE      BIT(m_flag, 7)
3735
3836
37// image position
38#define HFP         96
39#define VFP         23
40
41
3942// IOWR0 registers
4043enum
4144{
r12945r12946
949952
950953void abc1600_state::crtc_update_row(device_t *device, bitmap_t *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, void *param)
951954{
952   int x = 0;
955   if (y > 0x3ff) return;
956   
957   int x = HFP;
953958
954959   for (int column = 0; column < x_count; column += 2)
955960   {
r12945r12946
964969         {
965970            int color = (BIT(data, 15) ^ PIX_POL) & !BLANK;
966971
967            *BITMAP_ADDR16(bitmap, y, x++) = color;
972            *BITMAP_ADDR16(bitmap, y + VFP, x++) = color;
968973
969974            data <<= 1;
970975         }
r12945r12946
10501055
10511056bool abc1600_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect)
10521057{
1058   // HACK expand visible area to workaround MC6845
1059   screen.set_visible_area(0, 958, 0, 1067);
1060
10531061   if (m_endisp)
10541062   {
1063      bitmap_fill(&bitmap, &cliprect, FRAME_POL);
10551064      m_crtc->update(&bitmap, &cliprect);
10561065   }
10571066   else

Previous 15994 Revisions Next


© 1998-2018 The MESS Team