Quote:
Originally Posted by matthey
C has floating point libraries which can be used in assembler. There is no discrace with borrowing them or learning from them. Compile the modified C program with changes from thomas using vbcc and the math library of your choice.
The -k option can be used when compiling to get the assembler code or a disassembler like ADis can be used which is formatted for easy reassembly using vasm.
http://eab.abime.net/showthread.php?t=82709
|
Wow, that's a very interesting point; I totally forgot about the disassembler. Hang on, just give me a minute to get my head around this..
Quote:
Originally Posted by Thorham
Indeed. Macros can make your life ten times easier for that. I have some for a few functions that also switch between math and mathrans library pointers automatically. Much nicer that way.
|
Could you possibly share a basic example of how that works, please? I'm a little lost again, I'm afraid..