Jump to content



0

GPL Status Byte


3 replies to this topic

#1 Willsy OFFLINE  

Willsy

    Dragonstomper

  • 765 posts
  • Location:Uzbekistan (no, really!)

Posted Tue Oct 25, 2011 6:15 AM

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:

Attached File  GPLstatus.PNG   37.6K   9 downloads

And lo, it was so.

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

Attached File  fcom.PNG   78.4K   9 downloads

Where ist thou "equal bit"?

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

#2 Lee Stewart ONLINE  

Lee Stewart

    Chopper Commander

  • 175 posts

Posted Tue Oct 25, 2011 7:59 AM

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

#3 Willsy OFFLINE  

Willsy

    Dragonstomper

  • 765 posts
  • Location:Uzbekistan (no, really!)

Posted Tue Oct 25, 2011 8:05 AM

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

#4 Lee Stewart ONLINE  

Lee Stewart

    Chopper Commander

  • 175 posts

Posted Tue Oct 25, 2011 3:23 PM

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users