the 16 byte DOS demo from #revision2026 running on real hardware
holy… HOW
the 16 byte DOS demo from #revision2026 running on real hardware
holy… HOW
@RafiX c40448ab260345ae260305c1e802ebf2
that’s it. that’s the demo.
``` ;si=0x100 https://www.pcjs.org/documents/misc/DOS_COM_Startup_Registers.pdf s: les ax,word [si] ; es = [s+2] -> 0xAB48 l: dec ax stosw ;es:[di]=ax add ax,[es:di-82] add ax,[es:di] shr ax, 2 jmp l ```
uint16_t *base = 0xAB480;
base[0x7FFF] = 0x04C3;
for (uint15_t d = 0; ; ++d) {
base[d] = (base[d - 1] + base[d - 0x29] + base[d]) >> 2 - 1;
}0x0000000000000100: C4 04 les ax, ptr [si]
0x0000000000000102: 48 dec ax
0x0000000000000103: AB stosw word ptr es:[di], ax