From 88135162d7e20c1855b14cce6aa89a72a7902099 Mon Sep 17 00:00:00 2001 From: ProgrammerIn-wonderland <3838shah@gmail.com> Date: Sat, 24 Aug 2024 18:48:31 -0400 Subject: [PATCH 1/4] rebase ontop of fake networking --- Makefile | 3 +- copy.sh/v86/index.html | 283 +++++++++++++++++++++++++++++ src/browser/fake_network.js | 123 +++++++------ src/browser/starter.js | 3 + src/browser/wisp_network.js | 316 ++++++++++++++++++++++++++++++++ tests/devices/wisp_network.js | 326 ++++++++++++++++++++++++++++++++++ 6 files changed, 998 insertions(+), 56 deletions(-) create mode 100644 copy.sh/v86/index.html create mode 100644 src/browser/wisp_network.js create mode 100755 tests/devices/wisp_network.js diff --git a/Makefile b/Makefile index 3cb82fb5c7..fe0ccb9441 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ CORE_FILES=const.js config.js io.js main.js lib.js buffer.js ide.js pci.js flopp LIB_FILES=9p.js filesystem.js jor1k.js marshall.js utf8.js BROWSER_FILES=screen.js keyboard.js mouse.js speaker.js serial.js \ network.js starter.js worker_bus.js dummy_screen.js \ - fake_network.js fetch_network.js print_stats.js filestorage.js + fake_network.js wisp_network.js fetch_network.js print_stats.js filestorage.js RUST_FILES=$(shell find src/rust/ -name '*.rs') \ src/rust/gen/interpreter.rs src/rust/gen/interpreter0f.rs \ @@ -306,6 +306,7 @@ devices-test: all-debug ./tests/devices/virtio_9p.js ./tests/devices/virtio_console.js ./tests/devices/fetch_network.js + ./tests/devices/wisp_network.js rust-test: $(RUST_FILES) env RUSTFLAGS="-D warnings" RUST_BACKTRACE=full RUST_TEST_THREADS=1 cargo test -- --nocapture diff --git a/copy.sh/v86/index.html b/copy.sh/v86/index.html new file mode 100644 index 0000000000..27cd2ab1d1 --- /dev/null +++ b/copy.sh/v86/index.html @@ -0,0 +1,283 @@ + + + +
Arch Linux 12 MB >_ | + Complete Arch Linux with various compilers, networking and Xorg. Restored from snapshot. |
Damn Small Linux 50 MB 💻 | + Graphical Linux with 2.4 kernel, Firefox 2.0 and more. Takes 1 minute to boot. |
Buildroot Linux 5.0 MB >_ |
+ Minimal Linux with busybox, Lua, tests, internet access, ping, telnet and curl. Exchange files through /mnt/ . |
ReactOS 18 MB 💻 | + Windows-compatible OS with QtWeb and Breakout. Restored from snapshot. |
Windows 2000 22 MB 💻 | + Including Pinball and Internet Explorer with internet access. Additional sectors are loaded as needed. |
Windows 98 9.7 MB 💻 | + Including Minesweeper and Internet Explorer with internet access. Additional sectors are loaded as needed. |
Windows 95 4.6 MB 💻 | + Restored from snapshot |
Windows 3.1 15 MB 💻 | + Takes 15 seconds to boot |
Windows 1.01 0.6 MB 💻 | + The first version of Microsoft Windows |
MS-DOS 6.22 4.4 MB >_ | + With Enhanced Tools, QBasic, vim, games and demos. |
FreeDOS 0.5 MB >_ | + With nasm, vim, debug.com, Rogue, some games and demos. |
FreeBSD 17 MB >_ | + FreeBSD 12.0 base install. Restored from snapshot. |
OpenBSD 12 MB >_ | + OpenBSD 6.6 base install. Restored from snapshot. |
9front 4.4 MB 💻 | + A Plan 9 fork. |
Haiku 38 MB 💻 | + An open-source operating system inspired by BeOS. Restored from snapshot. Includes network support. |
SerenityOS 17 MB 💻 | + A graphical Unix-like operating system. Restored from snapshot. |
HelenOS 7.9 MB 💻 | + A graphical operating system based on a multiserver microkernel design |
FiwixOS 15 MB >_ | + A Unix-like OS written from scratch. Includes Doom. |
Android-x86 42 MB 💻 | + An x86 port of the Android 1.6. Quite slow. Takes about 3 minutes to boot. |
Oberon 1.2 MB 💻 | + Native Oberon 2.3.6 |
KolibriOS 1.4 MB 💻 | + Fast graphical OS written in Assembly |
QNX 1.3 MB 💻 | + QNX 4.05 Demo disk (no networking) |
Snowdrop 0.3 MB >_ | + A homebrew operating system from scratch, written in assembly language |
Solar OS 0.3 MB 💻 | + Simple graphical OS |
Bootchess 512 B >_ | + A tiny chess program written in the boot sector |
SectorLISP 512 B >_ | + A LISP interpreter that fits into the boot sector |
+ | |
+
+ | + + | +
+ | |
+
+ | |
+ | |
+ | |
Disk images are not uploaded to the server |
+ |
+ |
+ MB + |
+
+ |
+ MB + |
+
+ | + + | +
+ |
+ + |
+
+ |
+ + |
+
+ | + + | +
Version: 98e7110c2 (Feb 16, 2021 12:02)
+
+Arch Linux 12 MB >_ | - Complete Arch Linux with various compilers, networking and Xorg. Restored from snapshot. |
Damn Small Linux 50 MB 💻 | - Graphical Linux with 2.4 kernel, Firefox 2.0 and more. Takes 1 minute to boot. |
Buildroot Linux 5.0 MB >_ |
- Minimal Linux with busybox, Lua, tests, internet access, ping, telnet and curl. Exchange files through /mnt/ . |
ReactOS 18 MB 💻 | - Windows-compatible OS with QtWeb and Breakout. Restored from snapshot. |
Windows 2000 22 MB 💻 | - Including Pinball and Internet Explorer with internet access. Additional sectors are loaded as needed. |
Windows 98 9.7 MB 💻 | - Including Minesweeper and Internet Explorer with internet access. Additional sectors are loaded as needed. |
Windows 95 4.6 MB 💻 | - Restored from snapshot |
Windows 3.1 15 MB 💻 | - Takes 15 seconds to boot |
Windows 1.01 0.6 MB 💻 | - The first version of Microsoft Windows |
MS-DOS 6.22 4.4 MB >_ | - With Enhanced Tools, QBasic, vim, games and demos. |
FreeDOS 0.5 MB >_ | - With nasm, vim, debug.com, Rogue, some games and demos. |
FreeBSD 17 MB >_ | - FreeBSD 12.0 base install. Restored from snapshot. |
OpenBSD 12 MB >_ | - OpenBSD 6.6 base install. Restored from snapshot. |
9front 4.4 MB 💻 | - A Plan 9 fork. |
Haiku 38 MB 💻 | - An open-source operating system inspired by BeOS. Restored from snapshot. Includes network support. |
SerenityOS 17 MB 💻 | - A graphical Unix-like operating system. Restored from snapshot. |
HelenOS 7.9 MB 💻 | - A graphical operating system based on a multiserver microkernel design |
FiwixOS 15 MB >_ | - A Unix-like OS written from scratch. Includes Doom. |
Android-x86 42 MB 💻 | - An x86 port of the Android 1.6. Quite slow. Takes about 3 minutes to boot. |
Oberon 1.2 MB 💻 | - Native Oberon 2.3.6 |
KolibriOS 1.4 MB 💻 | - Fast graphical OS written in Assembly |
QNX 1.3 MB 💻 | - QNX 4.05 Demo disk (no networking) |
Snowdrop 0.3 MB >_ | - A homebrew operating system from scratch, written in assembly language |
Solar OS 0.3 MB 💻 | - Simple graphical OS |
Bootchess 512 B >_ | - A tiny chess program written in the boot sector |
SectorLISP 512 B >_ | - A LISP interpreter that fits into the boot sector |
- | |
-
- | - - | -
- | |
-
- | |
- | |
- | |
Disk images are not uploaded to the server |
- |
- |
- MB - |
-
- |
- MB - |
-
- | - - | -
- |
- - |
-
- |
- - |
-
- | - - | -
Version: 98e7110c2 (Feb 16, 2021 12:02)
-
-