src/mess/drivers/pce220.c
| r13604 | r13605 | |
| 118 | 118 | |
| 119 | 119 | bool pce220_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect) |
| 120 | 120 | { |
| 121 | UINT8 lcd_symbols[4]; |
| 122 | |
| 121 | 123 | if (m_lcd_on) |
| 122 | 124 | { |
| 123 | 125 | for (int y = 0; y < 4; y++) |
| r13604 | r13605 | |
| 143 | 145 | } |
| 144 | 146 | } |
| 145 | 147 | } |
| 148 | |
| 149 | lcd_symbols[0] = m_vram[((m_lcd_start_line>>3)*0x40 + 0x03c) & 0x1ff]; |
| 150 | lcd_symbols[1] = m_vram[((m_lcd_start_line>>3)*0x40 + 0x0fc) & 0x1ff]; |
| 151 | lcd_symbols[2] = m_vram[((m_lcd_start_line>>3)*0x40 + 0x13c) & 0x1ff]; |
| 152 | lcd_symbols[3] = m_vram[((m_lcd_start_line>>3)*0x40 + 0x1fc) & 0x1ff]; |
| 146 | 153 | } |
| 147 | 154 | else |
| 148 | 155 | { |
| 149 | 156 | bitmap_fill(&bitmap, &cliprect, 0); |
| 157 | memset(lcd_symbols, 0, sizeof(lcd_symbols)); |
| 150 | 158 | } |
| 151 | | /* |
| 152 | | // TODO: LCD Symbols |
| 153 | | popmessage("%x %x %x %x", m_vram[((m_lcd_start_line>>3)*0x40 + 0x03c) & 0x1ff], |
| 154 | | m_vram[((m_lcd_start_line>>3)*0x40 + 0x0fc) & 0x1ff], |
| 155 | | m_vram[((m_lcd_start_line>>3)*0x40 + 0x13c) & 0x1ff], |
| 156 | | m_vram[((m_lcd_start_line>>3)*0x40 + 0x1fc) & 0x1ff]); |
| 157 | | */ |
| 159 | |
| 160 | output_set_value("BUSY" , (lcd_symbols[0] & 0x01) ? 1 : 0); |
| 161 | output_set_value("CAPS" , (lcd_symbols[0] & 0x02) ? 1 : 0); |
| 162 | output_set_value("KANA" , (lcd_symbols[0] & 0x04) ? 1 : 0); |
| 163 | output_set_value("SYO" , (lcd_symbols[0] & 0x08) ? 1 : 0); |
| 164 | output_set_value("2ndF" , (lcd_symbols[0] & 0x10) ? 1 : 0); |
| 165 | output_set_value("TEXT" , (lcd_symbols[1] & 0x08) ? 1 : 0); |
| 166 | output_set_value("CASL" , (lcd_symbols[1] & 0x10) ? 1 : 0); |
| 167 | output_set_value("PRO" , (lcd_symbols[1] & 0x20) ? 1 : 0); |
| 168 | output_set_value("RUN" , (lcd_symbols[1] & 0x40) ? 1 : 0); |
| 169 | output_set_value("BATT" , (lcd_symbols[2] & 0x01) ? 1 : 0); |
| 170 | output_set_value("E" , (lcd_symbols[2] & 0x02) ? 1 : 0); |
| 171 | output_set_value("M" , (lcd_symbols[2] & 0x04) ? 1 : 0); |
| 172 | output_set_value("CONST", (lcd_symbols[2] & 0x08) ? 1 : 0); |
| 173 | output_set_value("RAD" , (lcd_symbols[2] & 0x10) ? 1 : 0); |
| 174 | output_set_value("G" , (lcd_symbols[2] & 0x20) ? 1 : 0); |
| 175 | output_set_value("DE" , (lcd_symbols[2] & 0x40) ? 1 : 0); |
| 176 | output_set_value("STAT" , (lcd_symbols[3] & 0x20) ? 1 : 0); |
| 177 | output_set_value("PRINT", (lcd_symbols[3] & 0x40) ? 1 : 0); |
| 178 | |
| 158 | 179 | return 0; |
| 159 | 180 | } |
| 160 | 181 | |
| 161 | 182 | bool pcg850v_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect) |
| 162 | 183 | { |
| 184 | UINT8 lcd_symbols[6]; |
| 163 | 185 | int color0 = 0; |
| 164 | 186 | int color1 = 1; |
| 165 | 187 | |
| r13604 | r13605 | |
| 203 | 225 | } |
| 204 | 226 | } |
| 205 | 227 | } |
| 228 | |
| 229 | lcd_symbols[0] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x090) & 0x7ff]; |
| 230 | lcd_symbols[1] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x190) & 0x7ff]; |
| 231 | lcd_symbols[2] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x290) & 0x7ff]; |
| 232 | lcd_symbols[3] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x390) & 0x7ff]; |
| 233 | lcd_symbols[4] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x490) & 0x7ff]; |
| 234 | lcd_symbols[5] = m_vram[((m_lcd_start_line>>3)*0x100 + 0x590) & 0x7ff]; |
| 206 | 235 | } |
| 207 | 236 | else |
| 208 | 237 | { |
| 209 | 238 | bitmap_fill(&bitmap, &cliprect, 0); |
| 239 | memset(lcd_symbols, 0, sizeof(lcd_symbols)); |
| 210 | 240 | } |
| 211 | 241 | |
| 242 | output_set_value("RUN" , (lcd_symbols[0] & 0x02) ? 1 : 0); |
| 243 | output_set_value("PRO" , (lcd_symbols[0] & 0x08) ? 1 : 0); |
| 244 | output_set_value("TEXT" , (lcd_symbols[0] & 0x40) ? 1 : 0); |
| 245 | output_set_value("CASL" , (lcd_symbols[1] & 0x08) ? 1 : 0); |
| 246 | output_set_value("STAT" , (lcd_symbols[2] & 0x01) ? 1 : 0); |
| 247 | output_set_value("2ndF" , (lcd_symbols[2] & 0x20) ? 1 : 0); |
| 248 | output_set_value("M" , (lcd_symbols[2] & 0x80) ? 1 : 0); |
| 249 | output_set_value("CAPS" , (lcd_symbols[3] & 0x04) ? 1 : 0); |
| 250 | output_set_value("KANA" , (lcd_symbols[3] & 0x80) ? 1 : 0); |
| 251 | output_set_value("SYO" , (lcd_symbols[4] & 0x02) ? 1 : 0); |
| 252 | output_set_value("DE" , (lcd_symbols[4] & 0x10) ? 1 : 0); |
| 253 | output_set_value("G" , (lcd_symbols[4] & 0x40) ? 1 : 0); |
| 254 | output_set_value("RAD" , (lcd_symbols[5] & 0x01) ? 1 : 0); |
| 255 | output_set_value("CONST", (lcd_symbols[5] & 0x04) ? 1 : 0); |
| 256 | output_set_value("PRINT", (lcd_symbols[5] & 0x10) ? 1 : 0); |
| 257 | output_set_value("BUSY" , (lcd_symbols[5] & 0x40) ? 1 : 0); |
| 258 | output_set_value("BATT" , (lcd_symbols[5] & 0x80) ? 1 : 0); |
| 259 | |
| 212 | 260 | return 0; |
| 213 | 261 | } |
| 214 | 262 | |