1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-03-12 10:42:14 +00:00

Convince myself that this isn't a case of present but invisible content.

This commit is contained in:
Thomas Harte
2025-09-16 07:36:59 -04:00
parent ff69709926
commit ff3fe135a3

View File

@@ -9,6 +9,7 @@
#include "BBCMicro.hpp"
#include "Machines/MachineTypes.hpp"
#include "Machines/Utility/MemoryFuzzer.hpp"
#include "Components/6522/6522.hpp"
#include "Components/6845/CRTC6845.hpp"
@@ -164,6 +165,16 @@ public:
void perform_bus_cycle(const Motorola::CRTC::BusState &state) {
system_via_.set_control_line_input<MOS::MOS6522::Port::A, MOS::MOS6522::Line::One>(state.vsync);
// static bool print = false;
// if(print) {
// for(int y = 0; y < 25; y++) {
// for(int x = 0; x < 40; x++) {
// printf("%c", ram_[0x7c00 + y*40 + x]);
// }
// printf("\n");
// }
// }
// Count cycles since horizontal sync to insert a colour burst.
if(state.hsync) {
++cycles_into_hsync_;
@@ -361,6 +372,7 @@ public:
page(1, &ram_[1], true);
page_sideways(15);
page(3, os_.data(), true);
Memory::Fuzz(ram_);
(void)target;
}