New to Propeller - can't compile keyboard.spin object
Chuck Davis
Posts: 23
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???
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
" Source Register/Constant cannot exceed $1FF" is the compliers way of saying
out of memory.
Scott
rev···· data,#-3 & $1F·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.