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
解決済! 解決策の投稿を見る。
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
Thanks. A very beginners mistake bit I have it fixed now.
Thanks
John, was this helpful?
Please let us know! :smileywink:
Regards!
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
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