Make sure we release the bus and data lines, also reset after ROM programming is done

This commit is contained in:
Dreaded_X 2020-12-22 04:02:30 +01:00
parent b638db4f95
commit 9eb63608ea

View File

@ -87,6 +87,14 @@ void control_program_eeprom(uint8_t* data, uint16_t length) {
send_memrq(0); send_memrq(0);
} }
enable_address_out(0);
// Release the bus again
send_busrq(0);
// Restart the z80
control_reset();
printf("\n"); printf("\n");
} }
@ -234,6 +242,9 @@ void cycle() {
had_ioreq = 0; had_ioreq = 0;
} }
// @todo We are forgetting to set this somewhere
enable_data_out(0);
if (has_memrq()) { if (has_memrq()) {
handle_memrq(); handle_memrq();
} else if (has_ioreq() && !has_m1()) { } else if (has_ioreq() && !has_m1()) {