Newb Page Value Expected

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Newb Page Value Expected

ソリューションへジャンプ
901件の閲覧回数
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

ラベル(1)
1 解決策
845件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
845件の閲覧回数
johnnorth
Contributor II

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

Thanks

845件の閲覧回数
Monica
Senior Contributor III

John, was this helpful?

Please let us know! :smileywink:

Regards!

0 件の賞賛
返信
846件の閲覧回数
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 件の賞賛
返信
845件の閲覧回数
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 件の賞賛
返信