25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_vga.c,v 1.95 2006/01/01 13:17:18 debug Exp $ |
* $Id: dev_vga.c,v 1.99 2006/06/16 18:31:26 debug Exp $ |
29 |
* |
* |
30 |
* VGA charcell and graphics device. |
* VGA charcell and graphics device. |
31 |
* |
* |
467 |
continue; |
continue; |
468 |
dev_fb_access(machine->cpus[0], |
dev_fb_access(machine->cpus[0], |
469 |
machine->memory, addr, rgb_line, |
machine->memory, addr, rgb_line, |
470 |
3 * font_width, MEM_WRITE, d->fb); |
3 * machine->x11_scaleup * font_width, |
471 |
|
MEM_WRITE, d->fb); |
472 |
} |
} |
473 |
} |
} |
474 |
} |
} |
521 |
int base = ((d->crtc_reg[VGA_CRTC_START_ADDR_HIGH] << 8) |
int base = ((d->crtc_reg[VGA_CRTC_START_ADDR_HIGH] << 8) |
522 |
+ d->crtc_reg[VGA_CRTC_START_ADDR_LOW]) * 2; |
+ d->crtc_reg[VGA_CRTC_START_ADDR_LOW]) * 2; |
523 |
int new_u_y1, new_u_y2; |
int new_u_y1, new_u_y2; |
524 |
debug("[ dev_vga_tick: dyntrans access, %llx .. %llx ]\n", |
debug("[ dev_vga_tick: dyntrans access, %"PRIx64" .. %" |
525 |
(long long)low, (long long)high); |
PRIx64" ]\n", (uint64_t) low, (uint64_t) high); |
526 |
low -= base; |
low -= base; |
527 |
high -= base; |
high -= base; |
528 |
d->update_x1 = 0; |
d->update_x1 = 0; |
1218 |
d->gfx_mem_size = 1; /* Nothing, as we start in text mode */ |
d->gfx_mem_size = 1; /* Nothing, as we start in text mode */ |
1219 |
d->pixel_repx = d->pixel_repy = machine->x11_scaleup; |
d->pixel_repx = d->pixel_repy = machine->x11_scaleup; |
1220 |
|
|
1221 |
/* Allocate in full pages, to make it possible to use bintrans: */ |
/* Allocate in full pages, to make it possible to use dyntrans: */ |
1222 |
allocsize = ((d->charcells_size-1) | (machine->arch_pagesize-1)) + 1; |
allocsize = ((d->charcells_size-1) | (machine->arch_pagesize-1)) + 1; |
1223 |
d->charcells = malloc(d->charcells_size); |
d->charcells = malloc(d->charcells_size); |
1224 |
d->charcells_outputed = malloc(d->charcells_size); |
d->charcells_outputed = malloc(d->charcells_size); |
1276 |
d->update_y2 = d->max_y - 1; |
d->update_y2 = d->max_y - 1; |
1277 |
d->modified = 1; |
d->modified = 1; |
1278 |
|
|
1279 |
machine_add_tickfunction(machine, dev_vga_tick, d, VGA_TICK_SHIFT); |
machine_add_tickfunction(machine, dev_vga_tick, d, |
1280 |
|
VGA_TICK_SHIFT, 0.0); |
1281 |
|
|
1282 |
register_reset(d); |
register_reset(d); |
1283 |
|
|