mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Post the serial control write onwards.
This commit is contained in:
parent
3d9f86c584
commit
1bae4973bc
@ -61,7 +61,6 @@ void Chipset::set_cia_interrupts(bool cia_a, bool cia_b) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Chipset::Copper::advance(uint16_t position) {
|
||||
switch(state_) {
|
||||
default: return false;
|
||||
@ -434,6 +433,7 @@ void Chipset::perform(const CPU::MC68000::Microcycle &cycle) {
|
||||
break;
|
||||
case Write(0x032):
|
||||
LOG("TODO: serial control: " << PADHEX(4) << cycle.value16());
|
||||
serial_.set_control(cycle.value16());
|
||||
break;
|
||||
|
||||
// DMA management.
|
||||
|
@ -147,7 +147,18 @@ class Chipset {
|
||||
uint16_t *ram_ = nullptr;
|
||||
uint32_t ram_mask_ = 0;
|
||||
} copper_;
|
||||
friend Copper;
|
||||
|
||||
// MARK: - Serial port.
|
||||
|
||||
class SerialPort {
|
||||
public:
|
||||
void set_control(uint16_t) {}
|
||||
|
||||
private:
|
||||
uint16_t value = 0, reload = 0;
|
||||
uint16_t shift = 0, receive_shift = 0;
|
||||
uint16_t status;
|
||||
} serial_;
|
||||
|
||||
// MARK: - Pixel output.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user