Quozl's Open Source

PIC 12C509 Stack Math Package

PIC Microcontrollers
Quozl wrote a stack math package for the PIC 12C509 processor. The code contains contains addition, subtraction, multiplication and division code for 16-bit signed integers, using a first in last out data stack based on the FSR and INDF registers. It aims for efficiency of file register space rather than code space efficiency. Full documentation is in the source file.

(20 February 2001)