Shop OBEX P1 Docs P2 Docs Learn Events
_remainder not compiling in sxb — Parallax Forums

_remainder not compiling in sxb

ERIC THE GREATERIC THE GREAT Posts: 19
edited 2008-06-04 13:49 in General Discussion
I have been using·SX assembly for quite some time now and have started learning SXB. I have downloaded the book "Practical SXB" from the Parallax website. There are a few examples in the text that I am trying to duplicate concerning driving a multiplexed LED display. For some reason the SXB compiler won't allow me to access the _REMAINDER register. I have tried about everything I can think of including downloading the newest version of the SXB compiler. I have a program line that reads tenth·TV = ADJ / SCALE followed by the line·NUM = _REMAINDER.·The Error that I get from the assembler is _REMAINDER is not defined. If I go to the assembly program window of my program I can see the assemblers declaration of _REMAINDER; so I know that it is there, I just do not know how to access it.

Comments

  • BeanBean Posts: 8,129
    edited 2008-06-04 11:38
    Eric,
    Please post the complete program here.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Did you know that 111,111,111 multiplied by 111,111,111 equals 12345678987654321 ?

    www.iElectronicDesigns.com

    ·
  • VelocitVelocit Posts: 119
    edited 2008-06-04 11:42
    Make sure there are two underscores before the word REMAINDER: i.e. __REMAINDER. It appears as though you typed it with only one in your post... I'm not sure if that's how you wrote it in the program as well.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
  • ERIC THE GREATERIC THE GREAT Posts: 19
    edited 2008-06-04 11:57
    Thanks Paul, I didnt know about the 2 underscores. I am sure thats the problem. Thanks for solving my problem. Eric
  • JonnyMacJonnyMac Posts: 9,216
    edited 2008-06-04 13:49
    Keep in mind, Eric, that you can view the List output (Ctrl-L) to see all of SX/B's internal names.
Sign In or Register to comment.