Previous 15994 Revisions Next

r1142 Thursday 18th October, 2007 at 16:50:23 UTC by Wilbert Pol
[CBMB] Slightly updated crtc6845 functions
[src/mess/includes]cbmb.h
[src/mess/machine]cbmb.c
[src/mess/video]cbmb.c

src/mess/includes/cbmb.h
r1141r1142
228228void cbm600hu_driver_init (void);
229229void cbm700_driver_init (void);
230230void cbmb_common_init_machine (void);
231void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param);
232void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param);
231void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma,
232                  UINT8 ra, UINT16 y, UINT8 x_count, void *param);
233void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma,
234                  UINT8 ra, UINT16 y, UINT8 x_count, void *param);
233235MACHINE_RESET( cbmb );
234236
235237void cbmb_rom_load(void);
src/mess/video/cbmb.c
r1141r1142
6262   cbmb_font=font;
6363}
6464
65void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) {
65void cbm600_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma,
66                  UINT8 ra, UINT16 y, UINT8 x_count, void *param) {
6667   int i;
6768
6869   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//      }
7075   }
7176}
7277
73void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, void *param) {
78void cbm700_update_row(mame_bitmap *bitmap, const rectangle *cliprect, UINT16 ma,
79                  UINT8 ra, UINT16 y, UINT8 x_count, void *param) {
7480   int i;
7581
7682   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//      }
7888   }
7989}
8090
src/mess/machine/cbmb.c
r1141r1142
244244   cbm_ieee_open();
245245}
246246
247static void cbmb_display_enable_changed(int display_enabled) {
248}
249
247250//static struct mscrtc6845_config cbm600_crtc= { 1600000 /*?*/, cbmb_vh_cursor };
248const static crtc6845_interface cbm600_crtc = { 0, 1600000 /*?*/, 8 /*?*/, NULL, cbm600_update_row, NULL, NULL };
251const 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};
249260
250261void cbm600_driver_init (void)
251262{
r1141r1142
268279}
269280
270281//static struct mscrtc6845_config cbm700_crtc= { 2000000 /*?*/, cbmb_vh_cursor };
271const static crtc6845_interface cbm700_crtc = { 0, 2000000 /*?*/, 9 /*?*/, NULL, cbm700_update_row, NULL, NULL };
282const 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};
272291
273292void cbm700_driver_init (void)
274293{

Previous 15994 Revisions Next


© 1998-2018 The MESS Team