Jump to content
IGNORED

GCC for the TMS9900 (new thread)


Recommended Posts

Doing some searching, I've found this already discussed... concluding that the examples on Theory's page are incorrect.. https://forums.atariage.com/topic/164295-gcc-for-the-ti/page/31/#comment-5295072

 

 

And I have more reading to do. There was also discussion back here: https://forums.atariage.com/topic/164295-gcc-for-the-ti/page/35/#comment-5363142

 

And Lee's fbForth Appendix L Notes on Radix-100 Notation should get me through. 

 

  • Like 5
Link to comment
Share on other sites

10 hours ago, jedimatt42 said:

Or, is Thierry's data wrong?

 

Most of the examples on Thierry’s page are, indeed, wrong. Here are the corrected examples:

Exponent Mantissa                     Value                Comment
-------- ---------------------------  -------------------  ------------------
>40      >01 >02 >03 >04 >05 >06 >07    1.020304050607     correct
>41      >01 >02 >03 >04 >05 >06 >0B   10.20304050611      102.0304050611
>3F      >05 >00 >00 >00 >00 >00 >00    0.5                  0.05
>BF(-41) >FF >02 >03 >05 >05 >06 >12  -10.20304050618       -1.020305050618
>00      >00 >xx >xx >xx >xx >xx >xx    0 (any exponent!)  correct

 

Also, though -41 is certainly correct for >BF, it is misleading. The hexadecimal representation of the absolute value of the entire number is

>4001 >0203 >0505 >0612

 

To represent a negative number, only the first word is negated. The negation is merely a contrivance to indicate that the number is negative. For math operations, the negation is noted (saved) and undone, i.e., operations are only performed on absolute values, adjusting the sign at the end.

 

...lee

  • Like 5
  • Thanks 1
Link to comment
Share on other sites

4 hours ago, jedimatt42 said:

Doing some searching, I've found this already discussed... concluding that the examples on Thierry's page are incorrect.. https://forums.atariage.com/topic/164295-gcc-for-the-ti/page/31/#comment-5295072

 

And I have more reading to do. There was also discussion back here: https://forums.atariage.com/topic/164295-gcc-for-the-ti/page/35/#comment-5363142

 

And Lee's fbForth Appendix L Notes on Radix-100 Notation should get me through. 

 

Also referenced here followed by a correction here. [Tried to find these references before my little dissertation above!]

 

...lee

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...