src/mess/includes/cbmb.h
| r1141 | r1142 | |
| 228 | 228 | void cbm600hu_driver_init (void); |
| 229 | 229 | void cbm700_driver_init (void); |
| 230 | 230 | void cbmb_common_init_machine (void); |
| 231 | | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 232 | | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 231 | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, |
| 232 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 233 | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, |
| 234 | UINT8 ra, UINT16 y, UINT8 x_count, void *param); |
| 233 | 235 | MACHINE_RESET( cbmb ); |
| 234 | 236 | |
| 235 | 237 | void cbmb_rom_load(void); |
src/mess/video/cbmb.c
| r1141 | r1142 | |
| 62 | 62 | cbmb_font=font; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 65 | void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, |
| 66 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 66 | 67 | int i; |
| 67 | 68 | |
| 68 | 69 | for( i = 0; i < x_count; i++ ) { |
| 69 | | drawgfx( bitmap, Machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, Machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 70 | // if ( ma + i == cursor_ma ) { |
| 71 | // plot_box( bitmap, Machine->gfx[cbmb_font]->width * i, y, Machine->gfx[cbmb_font]->width, 1, Machine->pens[1] ); |
| 72 | // } else { |
| 73 | drawgfx( bitmap, Machine->gfx[cbmb_font], videoram[(ma+i )& 0x7ff], 0, 0, 0, Machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 74 | // } |
| 70 | 75 | } |
| 71 | 76 | } |
| 72 | 77 | |
| 73 | | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 78 | void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, |
| 79 | UINT8 ra, UINT16 y, UINT8 x_count, void *param) { |
| 74 | 80 | int i; |
| 75 | 81 | |
| 76 | 82 | for( i = 0; i < x_count; i++ ) { |
| 77 | | drawgfx( bitmap, Machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, Machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 83 | // if ( ma + i == cursor_ma ) { |
| 84 | // plot_box( bitmap, Machine->gfx[cbmb_font]->width * i, y, Machine->gfx[cbmb_font]->width, 1, Machine->pens[1] ); |
| 85 | // } else { |
| 86 | drawgfx( bitmap, Machine->gfx[cbmb_font], videoram[(ma+i) & 0x7ff], 0, 0, 0, Machine->gfx[cbmb_font]->width * i, y-ra, cliprect, TRANSPARENCY_NONE, 0 ); |
| 87 | // } |
| 78 | 88 | } |
| 79 | 89 | } |
| 80 | 90 | |
src/mess/machine/cbmb.c
| r1141 | r1142 | |
| 244 | 244 | cbm_ieee_open(); |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | static void cbmb_display_enable_changed(int display_enabled) { |
| 248 | } |
| 249 | |
| 247 | 250 | //static struct mscrtc6845_config cbm600_crtc= { 1600000 /*?*/, cbmb_vh_cursor }; |
| 248 | | const static crtc6845_interface cbm600_crtc = { 0, 1600000 /*?*/, 8 /*?*/, NULL, cbm600_update_row, NULL, NULL }; |
| 251 | const static crtc6845_interface cbm600_crtc = { |
| 252 | 0, |
| 253 | 1600000 /*?*/, |
| 254 | 8 /*?*/, |
| 255 | NULL, |
| 256 | cbm600_update_row, |
| 257 | NULL, |
| 258 | cbmb_display_enable_changed |
| 259 | }; |
| 249 | 260 | |
| 250 | 261 | void cbm600_driver_init (void) |
| 251 | 262 | { |
| r1141 | r1142 | |
| 268 | 279 | } |
| 269 | 280 | |
| 270 | 281 | //static struct mscrtc6845_config cbm700_crtc= { 2000000 /*?*/, cbmb_vh_cursor }; |
| 271 | | const static crtc6845_interface cbm700_crtc = { 0, 2000000 /*?*/, 9 /*?*/, NULL, cbm700_update_row, NULL, NULL }; |
| 282 | const static crtc6845_interface cbm700_crtc = { |
| 283 | 0, |
| 284 | 2000000 /*?*/, |
| 285 | 9 /*?*/, |
| 286 | NULL, |
| 287 | cbm700_update_row, |
| 288 | NULL, |
| 289 | cbmb_display_enable_changed |
| 290 | }; |
| 272 | 291 | |
| 273 | 292 | void cbm700_driver_init (void) |
| 274 | 293 | { |