dmsc Posted July 1, 2020 Share Posted July 1, 2020 Hi! Trying to assemble different versions of the Altirra Kernel, I discovered that Mad Assembler does not always generate the correct bytes for all floating points values. Tracking the bug, it came from the different floating-point precision of the generated code, FreePascal uses different approximations for some of the operations than the Delphi compiler, producing different results. I rewrote the floating-point parsing code, using a simpler and more accurate algorithm that does not rely on converting a floating point into a string. Attached is the resulting pascal source. Have Fun! mads.pas 2 1 Quote Link to comment Share on other sites More sharing options...
tebe Posted July 1, 2020 Share Posted July 1, 2020 Thank you DMSC, I'm grateful for your contribution Quote Link to comment Share on other sites More sharing options...
dmsc Posted July 2, 2020 Author Share Posted July 2, 2020 Hi! 19 hours ago, tebe said: Thank you DMSC, I'm grateful for your contribution No problem, glad I could help. Fortunately there is google translate to understand the code comments Have Fun! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.