06. Mathematical coprocessor C0
- Floating-point subroutine conventions: $f12 … $f15 — parameters, $f0 — return value
- what if more? stack or memory or more registers
scale subroutine: A, B, a, b, X → x: A≤X≤B -> proportional a≤x≤b
- draw subroutine: n, c: print n spaces, then character c
- graph subroutine: a, b, width, height: draw transponed graphic of some formula f(x) from a to b like this:
f(a) * * * * * * * * * * * * * * f(b) ("height" lines/"width" max width)