Newb Page Value Expected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Newb Page Value Expected

Jump to solution
542 Views
johnnorth
Contributor II

Hi All,

  I'm very new to this and trying to create a project for the MC9S12XHZ512 chip in assembly. I have used the wizards to set this up but whenever I try to do a CALL as in "call sub_E111, #$E9" I get a Page value expected.

 

  My assembler options are "-CPUHCS12X -D__RUN_XGATE_OUT_OF_FLAS -MapFlash"

 

and linker options are -MapFlash

 

I have not changed anything else from the default except for defining my code. Is there something I need to set to enable this call?

 

Thanks

Labels (1)
1 Solution
486 Views
kef
Specialist I

Just remove the # sign.

Instead of specifying specific page number, in CW *.asm you can use the following notation

   call   foo, PAGE(foo)

and even just

   call   foo

View solution in original post

0 Kudos
4 Replies
486 Views
johnnorth
Contributor II

Thanks. A very beginners mistake bit I have it fixed now.

Thanks

486 Views
Monica
Senior Contributor III

John, was this helpful?

Please let us know! :smileywink:

Regards!

0 Kudos
487 Views
kef
Specialist I

Just remove the # sign.

Instead of specifying specific page number, in CW *.asm you can use the following notation

   call   foo, PAGE(foo)

and even just

   call   foo

0 Kudos
486 Views
johnnorth
Contributor II

I should note that Ive also tried adding the -mb command line flag to both the assembler and linker options for my target.  There are plenty of examples using C and these work, but I just cant get it to work when adding an asm file.

Thanks

0 Kudos