Previous 15994 Revisions Next

r12059 Saturday 25th June, 2011 at 16:12:01 UTC by Angelo Salese
Hooked up lopr/copr in vdp1 (untested, should help with Noon)
[ROOT]makefile
[src/mame/includes]stv.h
[src/mame/video]stvvdp1.c

src/mame/includes/stv.h
r12058r12059
5353        UINT16     *framebuffer[2];
5454        UINT16     **framebuffer_draw_lines;
5555       UINT8     *gfx_decode;
56      UINT16    lopr;
57      UINT16    copr;
5658
5759      int       local_x;
5860      int       local_y;
src/mame/video/stvvdp1.c
r12058r12059
174174   {
175175      case 0x10/2:
176176         break;
177      case 0x12/2:
178      case 0x14/2:
177      case 0x12/2: return state->m_vdp1.lopr;
178      case 0x14/2: return state->m_vdp1.copr;
179179      case 0x16/2:
180180         printf ("cpu %s (PC=%08X) VDP1: Read from Registers, Offset %04x\n", space->device().tag(), cpu_get_pc(&space->device()), offset*2);
181181
r12058r12059
19681968
19691969            default:
19701970               popmessage ("VDP1: Sprite List Illegal, contact MAMEdev");
1971               // TODO: LOPR/COPR hook-up
1971               state->m_vdp1.lopr = (position * 0x20) >> 3;
1972               state->m_vdp1.copr = (position * 0x20) >> 3;
19721973               return;
19731974         }
19741975      }
r12058r12059
19811982   end:
19821983   /* set CEF to 1*/
19831984   CEF_1;
1985   state->m_vdp1.copr = (position * 0x20) >> 3;
19841986
19851987   if (VDP1_LOG) logerror ("End of list processing!\n");
19861988}
makefile
r12058r12059
2424#-------------------------------------------------
2525
2626ifndef TARGET
27TARGET = mame
27TARGET = mess
2828endif
2929
3030ifndef SUBTARGET

Previous 15994 Revisions Next


© 1998-2018 The MESS Team