I just noticed, that you can easily overflow variable mult after just 5 iteration.
You can just store number of 0 in that variable, or something...
I just noticed, that you can easily overflow variable mult after just 5 iteration.
You can just store number of 0 in that variable, or something...
was hoping 3 iterations will be enough, but your right
one day I'm going to write a python pbp calculator with
pbp math functions including ** , */ and div32
using unsigned bytes and words
trial and error is tedious and I hate surprise results
It's not complicated...
C=A*/B is same as C=(A*B)/$FF
C=A**B same as C=(A*B)/$FFFF
Richard... I would pay for thatone day I'm going to write a python pbp calculator with
pbp math functions including ** , */ and div32
using unsigned bytes and words
I have a lot of trouble with that kind of pbp math.
I always have to compile and test and that takes forever !
If there was a simulator for pbp math it would be a life saver for sure !
Regards
Rui
Bookmarks