From 3151ffff3cec6a9f338fa765b610d0f4ce976ba4 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Tue, 14 Apr 2026 10:21:24 -0700 Subject: [PATCH] Add npm run qemu / qemu:cdrom scripts (#368) Boots images/windows95.img with the same device set the image was configured against: - ne2k_isa at iobase=0x300, irq=10 (matches the NE2000 ForcedConfig in SYSTEM.DAT and v86's port 0x300 / PIRQA->IRQ10) - vmport=on so VBMouse picks up the VMware backdoor for absolute pointer - sb16, pentium, acpi=off as before qemu:cdrom forwards an ISO path: npm run qemu:cdrom -- /path/to.iso --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index ce76701..5d6c364 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "lint": "prettier --write src/**/*.{ts,tsx} && npm run check-links", "tsc": "tsc -p tsconfig.json --noEmit", "check-links": "node tools/check-links.js", + "qemu": "qemu-system-i386 -m 128 -drive file=images/windows95.img,format=raw -device sb16 -M pc,acpi=off,vmport=on -cpu pentium -netdev user,id=mynet0 -device ne2k_isa,netdev=mynet0,iobase=0x300,irq=10", + "qemu:cdrom": "npm run qemu -- -cdrom", "postinstall": "patch-package" }, "keywords": [],