1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-18 17:06:15 +00:00

Extends back to 128kb and stops halting on unrecognised ports.

This commit is contained in:
Thomas Harte 2021-06-22 06:15:42 -04:00
parent 3acd0be1f7
commit e062780968
2 changed files with 6 additions and 5 deletions

View File

@ -37,7 +37,7 @@ void EXDos::set_disk(std::shared_ptr<Storage::Disk::Disk> disk, size_t drive) {
// b0 drive ready
void EXDos::set_control_register(uint8_t control) {
printf("Set control: %02x\n", control);
// printf("Set control: %02x\n", control);
if(control & 0x40) disk_did_change_ = false;
set_is_double_density(!(control & 0x20));
@ -61,7 +61,7 @@ uint8_t EXDos::get_control_register() {
(get_interrupt_request_line() ? 0x02 : 0x00) |
(get_drive().get_is_ready() ? 0x01 : 0x00);
printf("Get status: %02x\n", status);
// printf("Get status: %02x\n", status);
return status;
}

View File

@ -225,7 +225,8 @@ template <bool has_disk_controller> class ConcreteMachine:
switch(address & 0xff) {
default:
printf("Unhandled input: %04x\n", address);
assert(false);
// assert(false);
*cycle.value = 0xff;
break;
case 0x10: case 0x11: case 0x12: case 0x13:
@ -259,7 +260,7 @@ template <bool has_disk_controller> class ConcreteMachine:
switch(address & 0xff) {
default:
printf("Unhandled output: %04x\n", address);
assert(false);
// assert(false);
break;
case 0x10: case 0x11: case 0x12: case 0x13:
@ -333,7 +334,7 @@ template <bool has_disk_controller> class ConcreteMachine:
private:
// MARK: - Memory layout
std::array<uint8_t, 64 * 1024> ram_;
std::array<uint8_t, 128 * 1024> ram_;
std::array<uint8_t, 64 * 1024> exos_;
std::array<uint8_t, 16 * 1024> basic_;
std::array<uint8_t, 32 * 1024> dos_;