trunk/src/mess/layout/ti74.lay
| r31399 | r31400 | |
| 148 | 148 | |
| 149 | 149 | |
| 150 | 150 | <view name="Internal Layout"> |
| 151 | | <bounds left="0" top="0" right="189" bottom="28" /> |
| 151 | <bounds left="0" top="0" right="189" bottom="29" /> |
| 152 | 152 | |
| 153 | 153 | <screen index="0"> |
| 154 | | <bounds x="1" y="9" width="187" height="10" /> |
| 154 | <bounds x="1" y="9" width="187" height="11" /> |
| 155 | 155 | </screen> |
| 156 | 156 | |
| 157 | 157 | <!-- draw background around lcd screen matrix part --> |
| r31399 | r31400 | |
| 160 | 160 | <bounds left="0" top="0" right="188" bottom="9.25" /> |
| 161 | 161 | </bezel> |
| 162 | 162 | <bezel element="static_bg"> |
| 163 | | <bounds left="0" top="0" right="1.25" bottom="28" /> |
| 163 | <bounds left="0" top="0" right="1.25" bottom="29" /> |
| 164 | 164 | </bezel> |
| 165 | 165 | <bezel element="static_bg"> |
| 166 | | <bounds left="187.75" top="0" right="189" bottom="28" /> |
| 166 | <bounds left="187.75" top="0" right="189" bottom="29" /> |
| 167 | 167 | </bezel> |
| 168 | 168 | <bezel element="static_bg"> |
| 169 | | <bounds left="0" top="18.75" right="188" bottom="28" /> |
| 169 | <bounds left="0" top="19.75" right="188" bottom="29" /> |
| 170 | 170 | </bezel> |
| 171 | 171 | |
| 172 | 172 | <!-- draw top row of lcd indicators --> |
| r31399 | r31400 | |
| 201 | 201 | <!-- draw bottom row of lcd indicators --> |
| 202 | 202 | |
| 203 | 203 | <bezel name="lamp63" element="ind_basic"> |
| 204 | | <bounds x="16" y="22" width="20" height="5" /> |
| 204 | <bounds x="16" y="23" width="20" height="5" /> |
| 205 | 205 | </bezel> |
| 206 | 206 | <bezel name="lamp64" element="ind_calc"> |
| 207 | | <bounds x="43" y="22" width="20" height="5" /> |
| 207 | <bounds x="43" y="23" width="20" height="5" /> |
| 208 | 208 | </bezel> |
| 209 | 209 | <bezel name="lamp1" element="ind_deg"> |
| 210 | | <bounds x="70" y="22" width="20" height="5" /> |
| 210 | <bounds x="70" y="23" width="20" height="5" /> |
| 211 | 211 | </bezel> |
| 212 | 212 | <bezel name="lamp62" element="ind_rad"> |
| 213 | | <bounds x="97" y="22" width="20" height="5" /> |
| 213 | <bounds x="97" y="23" width="20" height="5" /> |
| 214 | 214 | </bezel> |
| 215 | 215 | <bezel name="lamp53" element="ind_grad"> |
| 216 | | <bounds x="124" y="22" width="20" height="5" /> |
| 216 | <bounds x="124" y="23" width="20" height="5" /> |
| 217 | 217 | </bezel> |
| 218 | 218 | <bezel name="lamp54" element="ind_stat"> |
| 219 | | <bounds x="151" y="22" width="20" height="5" /> |
| 219 | <bounds x="151" y="23" width="20" height="5" /> |
| 220 | 220 | </bezel> |
| 221 | 221 | |
| 222 | 222 | </view> |
trunk/src/mess/layout/cc40.lay
| r31399 | r31400 | |
| 138 | 138 | |
| 139 | 139 | |
| 140 | 140 | <view name="Internal Layout"> |
| 141 | | <bounds left="0" top="0" right="189" bottom="32" /> |
| 141 | <bounds left="0" top="0" right="189" bottom="33" /> |
| 142 | 142 | |
| 143 | 143 | <screen index="0"> |
| 144 | | <bounds x="1" y="11" width="187" height="10" /> |
| 144 | <bounds x="1" y="11" width="187" height="11" /> |
| 145 | 145 | </screen> |
| 146 | 146 | |
| 147 | 147 | <!-- draw background around lcd screen matrix part --> |
| r31399 | r31400 | |
| 150 | 150 | <bounds left="0" top="0" right="188" bottom="11.25" /> |
| 151 | 151 | </bezel> |
| 152 | 152 | <bezel element="static_bg"> |
| 153 | | <bounds left="0" top="0" right="1.25" bottom="32" /> |
| 153 | <bounds left="0" top="0" right="1.25" bottom="33" /> |
| 154 | 154 | </bezel> |
| 155 | 155 | <bezel element="static_bg"> |
| 156 | | <bounds left="187.75" top="0" right="189" bottom="32" /> |
| 156 | <bounds left="187.75" top="0" right="189" bottom="33" /> |
| 157 | 157 | </bezel> |
| 158 | 158 | <bezel element="static_bg"> |
| 159 | | <bounds left="0" top="20.75" right="188" bottom="32" /> |
| 159 | <bounds left="0" top="21.75" right="188" bottom="33" /> |
| 160 | 160 | </bezel> |
| 161 | 161 | |
| 162 | 162 | <!-- draw top row of lcd indicators --> |
| r31399 | r31400 | |
| 197 | 197 | <!-- draw bottom row of lcd indicators --> |
| 198 | 198 | |
| 199 | 199 | <bezel name="lamp60" element="ind_error"> |
| 200 | | <bounds x="7" y="24" width="20" height="5" /> |
| 200 | <bounds x="7" y="25" width="20" height="5" /> |
| 201 | 201 | </bezel> |
| 202 | 202 | |
| 203 | 203 | <bezel name="lamp61" element="ind_user"> |
| 204 | | <bounds x="29" y="26" width="20" height="5" /> |
| 204 | <bounds x="29" y="27" width="20" height="5" /> |
| 205 | 205 | </bezel> |
| 206 | 206 | <bezel name="lamp62" element="ind_user"> |
| 207 | | <bounds x="51" y="26" width="20" height="5" /> |
| 207 | <bounds x="51" y="27" width="20" height="5" /> |
| 208 | 208 | </bezel> |
| 209 | 209 | <bezel name="lamp63" element="ind_user"> |
| 210 | | <bounds x="73" y="26" width="20" height="5" /> |
| 210 | <bounds x="73" y="27" width="20" height="5" /> |
| 211 | 211 | </bezel> |
| 212 | 212 | <bezel name="lamp50" element="ind_user"> |
| 213 | | <bounds x="95" y="26" width="20" height="5" /> |
| 213 | <bounds x="95" y="27" width="20" height="5" /> |
| 214 | 214 | </bezel> |
| 215 | 215 | <bezel name="lamp51" element="ind_user"> |
| 216 | | <bounds x="117" y="26" width="20" height="5" /> |
| 216 | <bounds x="117" y="27" width="20" height="5" /> |
| 217 | 217 | </bezel> |
| 218 | 218 | <bezel name="lamp52" element="ind_user"> |
| 219 | | <bounds x="139" y="26" width="20" height="5" /> |
| 219 | <bounds x="139" y="27" width="20" height="5" /> |
| 220 | 220 | </bezel> |
| 221 | 221 | |
| 222 | 222 | <bezel name="lamp53" element="ind_low"> |
| 223 | | <bounds x="165" y="25.5" width="12" height="5" /> |
| 223 | <bounds x="165" y="26.5" width="12" height="5" /> |
| 224 | 224 | </bezel> |
| 225 | 225 | |
| 226 | 226 | |
trunk/src/mess/drivers/ti74.c
| r31399 | r31400 | |
| 180 | 180 | else if (line < 2 && pos < 16) |
| 181 | 181 | { |
| 182 | 182 | // internal: 2*16, external: 1*31 + indicators |
| 183 | if (y == 7) y++; // the cursor is slightly below the 5x7 character |
| 183 | 184 | bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state; |
| 184 | 185 | } |
| 185 | 186 | } |
| r31399 | r31400 | |
| 425 | 426 | MCFG_SCREEN_ADD("screen", LCD) |
| 426 | 427 | MCFG_SCREEN_REFRESH_RATE(60) // arbitrary |
| 427 | 428 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) |
| 428 | | MCFG_SCREEN_SIZE(6*31+1, 9*1+1) |
| 429 | | MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1) |
| 429 | MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1) |
| 430 | MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1) |
| 430 | 431 | MCFG_DEFAULT_LAYOUT(layout_ti74) |
| 431 | 432 | MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update) |
| 432 | 433 | MCFG_SCREEN_PALETTE("palette") |
trunk/src/mess/drivers/cc40.c
| r31399 | r31400 | |
| 193 | 193 | else if (line < 2 && pos < 16) |
| 194 | 194 | { |
| 195 | 195 | // internal: 2*16, external: 1*31 + indicators |
| 196 | if (y == 7) y++; // the cursor is slightly below the 5x7 character |
| 196 | 197 | bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state; |
| 197 | 198 | } |
| 198 | 199 | } |
| r31399 | r31400 | |
| 476 | 477 | MCFG_SCREEN_ADD("screen", LCD) |
| 477 | 478 | MCFG_SCREEN_REFRESH_RATE(60) // arbitrary |
| 478 | 479 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) |
| 479 | | MCFG_SCREEN_SIZE(6*31+1, 9*1+1) |
| 480 | | MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1) |
| 480 | MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1) |
| 481 | MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1) |
| 481 | 482 | MCFG_DEFAULT_LAYOUT(layout_cc40) |
| 482 | 483 | MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update) |
| 483 | 484 | MCFG_SCREEN_PALETTE("palette") |