src/mess/video/zx8301.c
| r9715 | r9716 | |
| 295 | 295 | |
| 296 | 296 | void zx8301_device::draw_line_mode4(bitmap_t *bitmap, int y, UINT16 da) |
| 297 | 297 | { |
| 298 | int x = 0; |
| 299 | |
| 298 | 300 | for (int word = 0; word < 64; word++) |
| 299 | 301 | { |
| 300 | 302 | UINT8 byte_high = readbyte(da++); |
| r9715 | r9716 | |
| 302 | 304 | |
| 303 | 305 | for (int pixel = 0; pixel < 8; pixel++) |
| 304 | 306 | { |
| 305 | | int x = 0; |
| 306 | 307 | int red = BIT(byte_low, 7); |
| 307 | 308 | int green = BIT(byte_high, 7); |
| 308 | 309 | int color = (green << 1) | red; |
| r9715 | r9716 | |
| 322 | 323 | |
| 323 | 324 | void zx8301_device::draw_line_mode8(bitmap_t *bitmap, int y, UINT16 da) |
| 324 | 325 | { |
| 326 | int x = 0; |
| 327 | |
| 325 | 328 | for (int word = 0; word < 64; word++) |
| 326 | 329 | { |
| 327 | 330 | UINT8 byte_high = readbyte(da++); |
| r9715 | r9716 | |
| 329 | 332 | |
| 330 | 333 | for (int pixel = 0; pixel < 4; pixel++) |
| 331 | 334 | { |
| 332 | | int x = 0; |
| 333 | 335 | int red = BIT(byte_low, 7); |
| 334 | 336 | int green = BIT(byte_high, 7); |
| 335 | 337 | int blue = BIT(byte_low, 6); |