HP calculator emulator ?
LechU
Posts: 1
Can anybody try to emulate classic Hewlett-Packard calculators ?
C source can be found on internet - look for "nonpareil"
C source can be found on internet - look for "nonpareil"
Comments
http://www.pulsedpower.net/Applets/Math/hp-35/calc.html
If you do "view source" on the page, you can see the source code.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
Hehe.. try Pi sin for a good laugh. Is the real calculator also as accurate? This is almost as useful as Microsoft BASIC's cdbl() function [noparse];)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
In fact, the result is perfect.
Just keep in mind it operates in degrees, not radiants [noparse];)[/noparse]
Axel
DUH! *blush* I should have realized that before looking at the source code. :-P
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Pullmoll's Propeller Projects
My newest does not use the propeller. It just does not lend itself efficently [noparse]:([/noparse]. I tried already [noparse]:)[/noparse] (look at the BCD math I wrote a while ago....).
btw: emulating the CPU is not that difficult. (See my BCD pkg for similarities).
Ale
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Visit some of my articles at Propeller Wiki:
MATH on the propeller propeller.wikispaces.com/MATH
pPropQL: propeller.wikispaces.com/pPropQL
pPropQL020: propeller.wikispaces.com/pPropQL020
OMU for the pPropQL/020 propeller.wikispaces.com/OMU
pPropellerSim - A propeller simulator for ASM development sourceforge.net/projects/ppropellersim
Before I started programming the Propeller, I stumbled across Ray's RPN calc and I used it all the time on my old pocketpc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Forums RSS Feed!
Gadget Gangster - Share your Electronic Projects