Jump to content
Sign in to follow this  
Willsy

GPL Status Byte

Recommended Posts

Okay, the GPL status byte at >837C is giving me grief.

 

Thy Hallowed Book of Truth sayeth that thy Holy GPL Byte of Holy Status be it assembled thusly:

 

post-24932-0-89503900-1319544486_thumb.png

 

And lo, it was so.

 

Yet hark, verily does thy Book Of Truth refer to an "equal bit" (FCOM, page 260):

 

post-24932-0-87489000-1319544809_thumb.png

 

Where ist thou "equal bit"?

 

[ or is the book referring to the eq bit in the 9900? If so, it's a bloody shambles! ]

Share this post


Link to post
Share on other sites

Mark...

 

Equality uses the COND bit---best have a look at the GPL Programmer's Guide in the pinned Development Resources on this site.

 

...lee

Share this post


Link to post
Share on other sites

Thanks Lee. Well, the plot thickens... I found this in the ROM after single stepping:

 

0FAA STST 2
0FAC MOV R2,@>837C

 

In other words, the GPL status byte is a copy of the 9900's status register.

 

Well well...

 

The EQ bit in the 9900 is bit 2, which just happens to be the COND bit in GPL parlence. So, you're spot on sir! Thank you. Another mystery solved.

 

Mark

Share this post


Link to post
Share on other sites

You're quite welcome. Maybe different people wrote different sections of the Hallowed Book of Truth, much like the clearly, obviously different styles in chapters of the original TI Forth manual, which I need to get back to editing!

 

...lee

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...