3 ms·
45 pages in before I saw the first comment. whoever wrote section 8, "what may be a simulation or game for billiards or pool", put actual one-line descriptions
by fernly 7y ago
45 pages in before I saw the first comment. whoever wrote section 8, "what may be a simulation or game for billiards or pool", put actual one-line descriptions before each section. Later on he gets real chatty, e.g.
fsin: 0203 " sine of the fine rotation angle
mfsin: -0203 " negative of fsin
Seriously, I bet there is a lot to be learned figuring out how he was approximating trigonometry using 12-bit int constants.
- 6c696e7578 7y ago> Later on he gets real chatty At least it wasn't one of those people who write comments that don't align with what the code is doing.
- boomlinde 7y agoIt looks like there are symbols named "sin" and "cos" not declared in the program. These are possibly system provided tables. Accesses to "sin" and "cos" are preceded by what looks like a self modifying store ("dac .+3", interpreted to mean "deposit accumulator at current program counter + 3"), possibly to modify the "lac sin" and "lac cos" instructions to index the tables, but I'm not familiar with the instruction encoding. If so, this is a relatively straight forward, non-magic way of implementing trigonometric functions.