import { MIXScreen1 } from "./MIXScreen1.js";
import { rnd } from "https://js.sabae.cc/rnd.js";
const scr1 = new MIXScreen1();
main.appendChild(scr1);
const draw = () => {
const fontROM = scr1.fontROM;
const textVRAM = scr1.textVRAM;
const n = 10;
for (let i = 0; i < n; i++) {
textVRAM[rnd(textVRAM.length)] = rnd(256);
}
const m = rnd(256);
for (let i = 0; i < 8; i++) {
fontROM[m * 8 + i] ^= 0xff;
}
scr1.draw();
requestAnimationFrame(draw);
};
draw();
src on GitHub