mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 00:30:29 +00:00
Restored white background and attempted to correct output timing deficiencies. Incomplete success.
This commit is contained in:
parent
2fbc7a2869
commit
97f3ff03b6
@ -149,13 +149,13 @@ void Machine::update_sync() {
|
|||||||
|
|
||||||
void Machine::output_level(unsigned int number_of_cycles) {
|
void Machine::output_level(unsigned int number_of_cycles) {
|
||||||
uint8_t *colour_pointer = (uint8_t *)crt_->allocate_write_area(1);
|
uint8_t *colour_pointer = (uint8_t *)crt_->allocate_write_area(1);
|
||||||
if(colour_pointer) *colour_pointer = 0;
|
if(colour_pointer) *colour_pointer = 0xff;
|
||||||
crt_->output_level(number_of_cycles);
|
crt_->output_level(number_of_cycles);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Machine::output_data() {
|
void Machine::output_data() {
|
||||||
unsigned int data_length = (unsigned int)(line_data_pointer_ - line_data_) * 4;
|
unsigned int data_length = (unsigned int)(line_data_pointer_ - line_data_);
|
||||||
crt_->output_data(data_length, 4);
|
crt_->output_data(data_length, 1);
|
||||||
line_data_pointer_ = line_data_ = nullptr;
|
line_data_pointer_ = line_data_ = nullptr;
|
||||||
cycles_since_display_update_ -= data_length;
|
cycles_since_display_update_ -= data_length;
|
||||||
}
|
}
|
||||||
@ -165,6 +165,8 @@ void Machine::output_byte(uint8_t byte) {
|
|||||||
if(cycles_since_display_update_ > 4) {
|
if(cycles_since_display_update_ > 4) {
|
||||||
output_data();
|
output_data();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
output_level(cycles_since_display_update_);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!line_data_) {
|
if(!line_data_) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user