View Single Post
Old 13 July 2017, 00:00   #11
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by matthey View Post
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 View Post
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..
guy lateur is offline  
 
Page generated in 0.06194 seconds with 11 queries