Fixed memory corruption bug when using PC1640.
This commit is contained in:
parent
677d47a109
commit
f715f9a034
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ void *pc1640_init()
|
||||||
mem_mapping_add(&pc1640->cga_mapping, 0xb8000, 0x08000, cga_read, NULL, NULL, cga_write, NULL, NULL, cga);
|
mem_mapping_add(&pc1640->cga_mapping, 0xb8000, 0x08000, cga_read, NULL, NULL, cga_write, NULL, NULL, cga);
|
||||||
mem_mapping_add(&pc1640->ega_mapping, 0, 0, ega_read, NULL, NULL, ega_write, NULL, NULL, ega);
|
mem_mapping_add(&pc1640->ega_mapping, 0, 0, ega_read, NULL, NULL, ega_write, NULL, NULL, ega);
|
||||||
io_sethandler(0x03a0, 0x0040, pc1640_in, NULL, NULL, pc1640_out, NULL, NULL, pc1640);
|
io_sethandler(0x03a0, 0x0040, pc1640_in, NULL, NULL, pc1640_out, NULL, NULL, pc1640);
|
||||||
return cga;
|
return pc1640;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pc1640_close(void *p)
|
void pc1640_close(void *p)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue