trunk/src/mess/drivers/gamate.c
| r242224 | r242225 | |
| 125 | 125 | if (video.bitmap.write) { |
| 126 | 126 | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) /*&& video.y<ARRAY_LENGTH(video.bitmap.data[0])*/) |
| 127 | 127 | video.bitmap.data[video.bitmap.page2][video.y][video.x]=data; |
| 128 | | else |
| 128 | else |
| 129 | 129 | logerror("%.6f %04x video bitmap x %x invalid\n",machine().time().as_double(), m_maincpu->pc(), video.x); |
| 130 | 130 | } else { |
| 131 | 131 | video.bitmap.data[0][video.y][video.x&(ARRAY_LENGTH(video.bitmap.data[0][0])-1)]=data; |
| 132 | | } |
| 132 | } |
| 133 | 133 | if (video.y_increment) video.y++; |
| 134 | 134 | else video.x++; |
| 135 | 135 | } |
| r242224 | r242225 | |
| 141 | 141 | UINT8 data=0; |
| 142 | 142 | if (video.bitmap.write) { |
| 143 | 143 | if (video.x<ARRAY_LENGTH(video.bitmap.data[0][0]) /*&& video.y<ARRAY_LENGTH(video.bitmap.data[0])*/) |
| 144 | | data=video.bitmap.data[video.bitmap.page2][video.y][video.x]; |
| 145 | | else |
| 144 | data=video.bitmap.data[video.bitmap.page2][video.y][video.x]; |
| 145 | else |
| 146 | 146 | logerror("%.6f video bitmap x %x invalid\n",machine().time().as_double(),video.x); |
| 147 | 147 | } else { |
| 148 | 148 | data=video.bitmap.data[0][video.y][video.x&(ARRAY_LENGTH(video.bitmap.data[0][0])-1)]; |
| 149 | 149 | } |
| 150 | | if (m_maincpu->pc()<0xf000) |
| 150 | if (m_maincpu->pc()<0xf000) |
| 151 | 151 | logerror("%.6f video read %04x %02x\n",machine().time().as_double(),offset, data); |
| 152 | 152 | return data; |
| 153 | 153 | } |
| r242224 | r242225 | |
| 196 | 196 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SELECT) PORT_NAME("select") |
| 197 | 197 | INPUT_PORTS_END |
| 198 | 198 | |
| 199 | #ifdef UNUSED_CODE |
| 199 | 200 | static const struct gfx_layout gamate_charlayout = |
| 200 | 201 | { |
| 201 | 202 | 4, /* width of object */ |
| r242224 | r242225 | |
| 215 | 216 | 0,1,2,3 |
| 216 | 217 | }; |
| 217 | 218 | |
| 219 | static GFXDECODE_START( gamate_charlayout ) |
| 220 | GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) |
| 221 | GFXDECODE_END |
| 222 | #endif |
| 223 | |
| 218 | 224 | /* palette in red, green, blue tribles */ |
| 219 | 225 | static const unsigned char gamate_colors[4][3] = |
| 220 | 226 | { |
| r242224 | r242225 | |
| 224 | 230 | { 0, 0, 0 } |
| 225 | 231 | }; |
| 226 | 232 | |
| 227 | | static GFXDECODE_START( gamate_charlayout ) |
| 228 | | GFXDECODE_ENTRY( "gfx1", 0x0000, gamate_charlayout, 0, 0x100 ) |
| 229 | | GFXDECODE_END |
| 230 | | |
| 231 | 233 | PALETTE_INIT_MEMBER(gamate_state, gamate) |
| 232 | 234 | { |
| 233 | 235 | int i; |