WIP: 16C firmware hack for more memory
|
04-09-2023, 12:15 AM
Post: #59
|
|||
|
|||
RE: WIP: 16C firmware hack for more memory
(04-08-2023 06:53 AM)brouhaha Wrote: The logs and exponentials are saving x in LASTx, except if number entry has not been terminated prior to the function being invoked. In other words, the sequence "4 x<>y x<>y ln" puts 4.0 in LASTx, but "4 ln" puts an NNN from the non-terminated digit entry into LASTx. I need to study how other 16C floating point functions (arithmetic, 1/x, sqrt) deal with LASTx. It looks like the default LASTx handling is only suited for integer functions. The LASTx problem was another thinko on my part. I understood how the default LASTx handling works, but didn't notice that it occurs AFTER the point that I patch to implement the new functions. I just had to copy about eight instructions from the normal path into my alternate path. I still have to add overflow handling, which will probably not be as simple. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)