Page 5 of 5

Re: How does the floating point math package in BASIC work?

Posted: Fri Jul 11, 2014 3:06 pm
by jedie
btw. have add working test with: JSR $e682 - CONVERT FPA0 TO A TWO BYTE INTEGER to D :) See: https://github.com/jedie/DragonPy/blob/ ... 09.py#L211

Re: How does the floating point math package in BASIC work?

Posted: Fri Jul 11, 2014 6:09 pm
by JeeK
jedie wrote: [..]

The trace when calling $edcb is here:
https://gist.github.com/jedie/a17def9a40f01e435d72
raw view seems to be better:
https://gist.githubusercontent.com/jedi ... y%2010.asm




Conslusion: I expected the value 0.5 binary $80, $80, $00, $00, $00, $00 in FPA0
But there is: $80, $d0, $00, $00, $00, $00

btw. a python routine to calculate from binary back to float would be helpfull ;)
Something went wrong in the division , maybe flag behavior - not obvious (at least for me). What about to compare to a Xroar trace?