Make sure we release the bus and data lines, also reset after ROM programming is done
This commit is contained in:
parent
b638db4f95
commit
9eb63608ea
|
@ -87,6 +87,14 @@ void control_program_eeprom(uint8_t* data, uint16_t length) {
|
|||
send_memrq(0);
|
||||
}
|
||||
|
||||
enable_address_out(0);
|
||||
|
||||
// Release the bus again
|
||||
send_busrq(0);
|
||||
|
||||
// Restart the z80
|
||||
control_reset();
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
|
@ -234,6 +242,9 @@ void cycle() {
|
|||
had_ioreq = 0;
|
||||
}
|
||||
|
||||
// @todo We are forgetting to set this somewhere
|
||||
enable_data_out(0);
|
||||
|
||||
if (has_memrq()) {
|
||||
handle_memrq();
|
||||
} else if (has_ioreq() && !has_m1()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user