src/mame/video/stvvdp1.c
| r12058 | r12059 | |
| 174 | 174 | { |
| 175 | 175 | case 0x10/2: |
| 176 | 176 | 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; |
| 179 | 179 | case 0x16/2: |
| 180 | 180 | printf ("cpu %s (PC=%08X) VDP1: Read from Registers, Offset %04x\n", space->device().tag(), cpu_get_pc(&space->device()), offset*2); |
| 181 | 181 | |
| r12058 | r12059 | |
| 1968 | 1968 | |
| 1969 | 1969 | default: |
| 1970 | 1970 | 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; |
| 1972 | 1973 | return; |
| 1973 | 1974 | } |
| 1974 | 1975 | } |
| r12058 | r12059 | |
| 1981 | 1982 | end: |
| 1982 | 1983 | /* set CEF to 1*/ |
| 1983 | 1984 | CEF_1; |
| 1985 | state->m_vdp1.copr = (position * 0x20) >> 3; |
| 1984 | 1986 | |
| 1985 | 1987 | if (VDP1_LOG) logerror ("End of list processing!\n"); |
| 1986 | 1988 | } |