All examples run under the BIOS and do not require an operating system such as DOS, Linux, or Windows to run. However, you will need an operating system to run the QEMU PC emulator to load the programs onto a virtual computer that behaves like a computer at the stage where the BIOS detects hardware and tries to load your boot sector program instead of an operating system. Because QEMU is Open Source and available for modern Linux or Windows, it will be as convenient to use as DOSBox was in the DOS version of Assembly Arithmetic Algorithms.
How computers really work, told on one small machine from 1982, the ZX Spectrum, through the simple explanations every learner is given, and the moments each one stops being true.
Write the processor that powered the BBC Micro, the Commodore 64, the NES and the Apple II. Thirty builds take you from LDA #$48 to a cycle-accurate 6502 emulator in Rust that passes all three standard conformance suites and finishes by running a complete 6502 chess program. Written for developers.