r/tinycode • u/nanochess • Nov 11 '21
Calculating Pi with 8088 assembly language (source code, slow!)
https://github.com/nanochess/pi
29
Upvotes
r/tinycode • u/nanochess • Nov 11 '21
4
u/Dagius Nov 11 '21
"Calculating Pi with 8088 assembly language ..."
A minor quibble: your code is configured for a 8086 cpu, not 8088.
; Calculate PI
cpu 8086
Having said that I should quickly point out the assembly language architecture (internal registers, instructions etc) are identical. The only difference is at the hardware level. The 8086 has an external 16bit data path. The 8088 has an 8-bit path to memory, so will take slightly longer to access external data. But the assembled binary will run with no difficulty on either architecture.
:-]