From 54ca840f7583a44b30ec51f4b8fd92cf292403d7 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Mon, 5 May 2025 20:27:46 +0900 Subject: [PATCH] keypress sim by software proof-of-concept --- assets/disk0/tvdos/hyve.SYS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/assets/disk0/tvdos/hyve.SYS b/assets/disk0/tvdos/hyve.SYS index 3b43466..a817c84 100644 --- a/assets/disk0/tvdos/hyve.SYS +++ b/assets/disk0/tvdos/hyve.SYS @@ -61,6 +61,21 @@ function startNewInstance() { sys.sleep(1000) } +const randomkeypusher = ` +while (1) { + sys.poke(-38, 65 + (Math.random()*26)|0) + sys.poke(-50, 1) + sys.sleep(10) + sys.poke(-50, 0) + sys.sleep(90) +} +` + +function startNewRandomKeyPusher() { + runner = parallel.attachProgram("TVDOS", parallel.spawnNewContext(), randomkeypusher) + parallel.launch(runner) +} + ///////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -69,6 +84,7 @@ graphics.setBackground(34,51,68) println("== h y v e ============================================== Hypervisor for tsvm ==") startNewInstance() +//startNewRandomKeyPusher() while (parallel.isRunning(runner)) { if (sys.peek(-49) >>> 7 == 1) {