Shop OBEX P1 Docs P2 Docs Learn Events
New to Propeller - can't compile keyboard.spin object — Parallax Forums

New to Propeller - can't compile keyboard.spin object

Chuck DavisChuck Davis Posts: 23
edited 2007-08-16 22:54 in Propeller 1
I just got my propeller starter kit and am trying out various things:

I can't get the keyboard object to compile; it gets an error on the last line of the code snippet shown below:

configure··········· mov···· data,#$F3·············· 'set keyboard auto-repeat
······················· call··· #transmit
······················· mov···· data,_auto
······················· and···· data,#%11_11111
······················· call··· #transmit
······················· mov···· data,#$ED·············· 'set keyboard lock-leds
······················· call··· #transmit
······················· mov···· data,_locks
······················· rev···· data,#-3········· '******·· ERROR ON THIS LINE


Error states· "·Source Register/Constant cannot exceed $1FF"· I tried changing the -3 to just 3, which eliminates the error but I can't get the keyboard demo to work after compiling it.· Any thoughts???

Comments

  • scottascotta Posts: 168
    edited 2007-08-16 21:25
    Get a new copy of the object....

    " Source Register/Constant cannot exceed $1FF" is the compliers way of saying
    out of memory.

    Scott
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-08-16 21:41
    That line is supposed to read:

    rev···· data,#-3 & $1F·

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • deSilvadeSilva Posts: 2,967
    edited 2007-08-16 21:52
    Paul Baker (Parallax) said...
    That line is supposed to read:
    rev data,#-3 & $1F
    Just apropos: It would have been much cleaner to say:
    rev     data, #32-3
    
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-08-16 22:04
    Im not the author, I just cut and pasted what was in the original driver.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • deSilvadeSilva Posts: 2,967
    edited 2007-08-16 22:54
    No offence! I had my tutorial in mind, and there is so much to say... exactly such kinds of things: "Dos and Don'ts"
Sign In or Register to comment.