←back to thread

617 points EvgeniyZh | 1 comments | | HN request time: 0s | source
Show context
zabzonk ◴[] No.43576999[source]
I've written an Intel 8080 emulator that was portable between Dec10/VAX/IBM VM CMS. That was easy - the 8080 can be done quite simply with a 256 value switch - I did mine in FORTRAN77.

Writing a BASIC interpreter, with floating point, is much harder. Gates, Allen and other collaborators BASIC was pretty damned good.

replies(4): >>43577257 #>>43577890 #>>43579471 #>>43580146 #
teleforce ◴[] No.43580146[source]
Fun facts, according to Jobs for some unknown reasons Wozniak refused to add floating point support to Apple Basic thus they had to license BASIC with floating point numbers from Microsoft [1].

[1] Bill & Steve (Jobs!) reminisce about floating point BASIC:

https://devblogs.microsoft.com/vbteam/bill-steve-jobs-remini...

replies(2): >>43580215 #>>43585252 #
WalterBright ◴[] No.43585252[source]
Writing a floating point emulator (I've done it) is not too hard. First, write it in a high level language, and debug the algorithm. Then hand-assembling it is not hard.

What is hard is skipping the high level language step, and trying to do it in assembler in one step.

replies(3): >>43585361 #>>43586743 #>>43589235 #
zabzonk ◴[] No.43585361{3}[source]
I've never understood floating point :-)
replies(5): >>43585716 #>>43585892 #>>43587144 #>>43587391 #>>43590143 #
1. hh2222 ◴[] No.43585892{4}[source]
Wrote floating point routines in assembler back in college. When you get it, it's one of those aha moments.