Shop OBEX P1 Docs P2 Docs Learn Events
Help with Keyboard.Spin — Parallax Forums

Help with Keyboard.Spin

GManGMan Posts: 19
edited 2006-07-24 04:54 in Propeller 1
I can't get any example code to run that includes Keyboard.spin.· When I attempt to compile the code I receive the error "Source register/constant cannot exceed $1FF."· Can anyone point me toward the reason for this?· I tried searching for the error message on the forum, but that didn't turn up anything.· I can't be the only one experiencing this can I?· I'd appreciate any help that can be offered on this.

Comments

  • SSteveSSteve Posts: 808
    edited 2006-07-24 04:12
    The new compiler checks for a common assembler error that the old one didn't. Literal values in assembler statements can't be larger than $1FF, but version 0.95 didn't catch that. So code that compiled with 0.95 won't compile with 0.98 if it breaks that rule. Make sure you are using the version of keyboard.spin that gets installed with 0.98. (I'm assuming there is one. If there isn't, I'm sure someone will speak up.)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our album on the iTunes Music Store
  • GManGMan Posts: 19
    edited 2006-07-24 04:26
    Thank you very much! That did it!
  • SSteveSSteve Posts: 808
    edited 2006-07-24 04:54
    Great! Thanks for reporting back.

    I was one of the people who was tripped up by the compiler not catching that error, so I was happy to see it fixed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our album on the iTunes Music Store
Sign In or Register to comment.