In SX Microcontrollers, SX/B Compiler and SX-Key Tool, baba40 wrote: I have copied Al Williams new SX/B LCD driver code, an update of his previous SX assembler implementation, from the new version 3 of [i]Exploring the SX Microcontroller wiht Assembly and Basic Programming. [/i]When I assembly it, I get an "error 44, Pass 2: Address 266 is not within lower half of memory page." the source code of the subroutine where this is happening is: gosub setcursor,40 'move to line 2 goto ploop The assembled code is: MOV __PARAM1,#40 ; gosub setcursor, 40 'move to line 2 MOV __PARAMCNT,#1 CALL @setcursor JMP @ploop ; goto ploop The error references: CALL @setcursor I suspect this is some sort of dreaded page jump problem from the assembler syntax used on this line, but since I did not create the code, I'm not sure, nor am I sure how to correct this problem since I suspect it probably didn't happen when the code was tested prior to publication. Has anyone stumbled across this before and discovered the problem. I am beginning to believe my worst fears of intermingling basic and assembler using a non-optimizing compiler/assembler maybe coming true. Nimbus ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=183975 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)