Previous 15994 Revisions Next

r13605 Saturday 17th December, 2011 at 10:02:50 UTC by Sandro Ronco
pce220: added LCD symbols output. (no whatsnew)
[src/mess/drivers]pce220.c

src/mess/drivers/pce220.c
r13604r13605
118118
119119bool pce220_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect)
120120{
121   UINT8 lcd_symbols[4];
122
121123   if (m_lcd_on)
122124   {
123125      for (int y = 0; y < 4; y++)
r13604r13605
143145            }
144146         }
145147      }
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];
146153   }
147154   else
148155   {
149156      bitmap_fill(&bitmap, &cliprect, 0);
157      memset(lcd_symbols, 0, sizeof(lcd_symbols));
150158   }
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
158179    return 0;
159180}
160181
161182bool pcg850v_state::screen_update(screen_device &screen, bitmap_t &bitmap, const rectangle &cliprect)
162183{
184   UINT8 lcd_symbols[6];
163185   int color0 = 0;
164186   int color1 = 1;
165187
r13604r13605
203225            }
204226         }
205227      }
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];
206235   }
207236   else
208237   {
209238      bitmap_fill(&bitmap, &cliprect, 0);
239      memset(lcd_symbols, 0, sizeof(lcd_symbols));
210240   }
211241
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
212260    return 0;
213261}
214262

Previous 15994 Revisions Next


© 1998-2018 The MESS Team