Fixed memory corruption bug when using PC1640.

This commit is contained in:
TomW 2013-12-20 22:49:39 +00:00
commit f715f9a034

View file

@ -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->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);
return cga;
return pc1640;
}
void pc1640_close(void *p)