Jump to content

7800 basic hex 0x vs. $


Recommended Posts

in 7800 basic, the docs say $ to specify a hex value.  I had previously been using 0x which seemed okay.  Do both work in all situations?


for example:

temp1= temp2&0xf


temp1= temp2&$f


They seem to, but I don't want to assume, because I've spent days debugging some tricky code and I'm looking for anything silly I may have overlooked.

Link to comment
Share on other sites

FWIW, I seemed to have fixed the bug I was working on.  One of those creepy ones where you're not exactly sure what you did to fix it.  I had a bunch of compounded if then lines in my algorithm, and something didn't play nicely.  I am curious if there are any limitations of $ vs. 0x , but I can verify now that the major issues seem fixed.

  • Like 1
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

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