Hello! I am unable to test this out, or I wouldn’t be asking it, but if register B equaled hexidecimal $FF, and register C equaled $FF, would register BC equal $FFFF? Some how I need to emulate this in BASIC....
Yes. And to be clear, B is the high byte and C is the low byte. So if you instead had distinguishable values like B = $12 and C = $34, then BC = $1234.
Okay, thanks a lot!
Brando wrote:
Hello! I am unable to test this out, or I wouldn’t be asking it, but if register B equaled hexidecimal $FF, and register C equaled $FF, would register BC equal $FFFF? Some how I need to emulate this in BASIC....


Be careful if you're on the TI 84+ CE though; in eZ80 (and ADL mode), BC is actually 24 bits, with the upper byte stored in the register BCU (which is not usable on its own) so BC would actually be $XXFFFF, where XX is based on what was last loaded into BC
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement