Here's an untested library of a implementation of a sowtware stack
for 18Fxx2. In these chips hw stack haves 32 levels, but if someone
found this insuficient can try this one:
If you're planning to use it, take this library as "for advanced
- Uses FSR2 and have no error checking.
- Problems with tail-chain procedures.
- Untested/Uncompiled, bugs for free.
- You can store only TOSH & TOSL in 18F452/442/etc. chips,
making TOSU=0x00. Will save ram.
[PS] It's only a test how a Software Stack can be implemented. Perhaps
it's not usefull at all.
[PS] If anyone test this, please report.