2 ms·
Show HN: 10biForthOS a full 8086 OS in 46 bytes
10biForthOS = 10b(2) i(nstructions) Forth OS is a very primitive Forth with only two instructions:
1 is compile
0 is execute
It is heavily inspired by Frank Sergeant 3-Instruction Forth (https://pygmy.utoh.org/3ins4th.html https://pygmy.utoh.org/3ins4th.html)
- akkartik 2y agoNice! I quibble with the name "compile" for the 1 instruction. Perhaps "load" would be a better name?
- pbrhocwp 2y agoAuthor here: Thanks! The 1 instruction will place the opcode received from the serial line or the keyboard to a fixed location in memory. Maybe store would be a better name. But store (!) in Forth is associated with a memory address. The compilation term comes from the fact that at the end the memory map will be the same as the one compiled with an assembler. Also in the Frank Sergeant 3 inst version. Load is used to load a memory address on the target and send it back to the host computer.