mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-09 05:25:01 +00:00
This now at least remembers whether it is meant to be a ZX81 and has storage for a horizontal counter.
This commit is contained in:
@@ -142,9 +142,8 @@ void Machine::run_for_cycles(int number_of_cycles) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Machine::configure_as_target(const StaticAnalyser::Target &target) {
|
void Machine::configure_as_target(const StaticAnalyser::Target &target) {
|
||||||
// TODO: pay attention to the target; it can't currently specify a ZX81
|
is_zx81_ = target.zx8081.isZX81;
|
||||||
// so assume a ZX80 if we got here.
|
if(is_zx81_) {
|
||||||
if(target.zx8081.isZX81) {
|
|
||||||
rom_ = zx81_rom_;
|
rom_ = zx81_rom_;
|
||||||
tape_trap_address_ = 0x37c;
|
tape_trap_address_ = 0x37c;
|
||||||
tape_return_address_ = 0x380;
|
tape_return_address_ = 0x380;
|
||||||
|
@@ -84,6 +84,9 @@ class Machine:
|
|||||||
|
|
||||||
Storage::Tape::BinaryTapePlayer tape_player_;
|
Storage::Tape::BinaryTapePlayer tape_player_;
|
||||||
Storage::Tape::ZX8081::Parser parser_;
|
Storage::Tape::ZX8081::Parser parser_;
|
||||||
|
|
||||||
|
int horizontal_counter_;
|
||||||
|
bool is_zx81_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user