How to add and multiply two 32 bit numbers?
look for a web page about z80 coding
Exactly, for example: http://z80-heaven.wikidot.com/math
If you want to have a "readable" idea about these math operations (ADD, SUB, MUL), check my BigInt implementation library. It supports 8, 16, 24, 32, 64 to infinite bits operation.
https://sourceforge.net/p/oldskooltech/code/HEAD/tree/msx/tr...
[]'s
PopolonY2k
@popolony2k Really brilliant, and can be translated into MSX-C
Yes. In fact it will be more optimized if translated to MSX-C because the pointer deference method used in this Turbo Pascal code is not optimized (because the pointer operations are not optmized in this TP version), but I realized a way to turn pointer operations in this TP version to be so optimized as C languages. Soon I'll optimize this TP code and it will be a little bit faster.
There are a lot of unit tests around this implementation and it has been used in MSXDUMP disk editor for 24bit pointer operations used by Sunrise IDE low level functions.
[]'s
PopolonY2k
Don't you have an account yet? Become an MSX-friend and register an account!