mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
Corrected timestamp reporting by the all-RAM Z80.
This commit is contained in:
parent
81a3899381
commit
847e49ccdf
@ -18,7 +18,7 @@ namespace CPU {
|
||||
class AllRAMProcessor {
|
||||
public:
|
||||
AllRAMProcessor(size_t memory_size);
|
||||
uint32_t get_timestamp();
|
||||
virtual uint32_t get_timestamp();
|
||||
void set_data_at_address(uint16_t startAddress, size_t length, const uint8_t *data);
|
||||
void get_data_at_address(uint16_t startAddress, size_t length, uint8_t *data);
|
||||
|
||||
|
@ -94,6 +94,10 @@ class ConcreteAllRAMProcessor: public AllRAMProcessor, public Processor<Concrete
|
||||
void set_wait_line(bool value) {
|
||||
CPU::Z80::Processor<ConcreteAllRAMProcessor>::set_wait_line(value);
|
||||
}
|
||||
|
||||
uint32_t get_timestamp() {
|
||||
return timestamp_ >> 1;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -38,6 +38,8 @@ class AllRAMProcessor:
|
||||
virtual void set_non_maskable_interrupt_line(bool value) = 0;
|
||||
virtual void set_wait_line(bool value) = 0;
|
||||
|
||||
virtual uint32_t get_timestamp() = 0;
|
||||
|
||||
protected:
|
||||
MemoryAccessDelegate *delegate_;
|
||||
AllRAMProcessor() : ::CPU::AllRAMProcessor(65536), delegate_(nullptr) {}
|
||||
|
Loading…
Reference in New Issue
Block a user