Hello, I'm looking for a super simple relocatable assembly code example with a couple of asm files.
Thanks in advance!
Ed
Solved! Go to Solution.
HI
Please enable "use text based project" , reopen CodeWarrior. then import my demo project again,
Have a nice day,
Jun Zhang
Hi e_taylor,
What's your chip PN and what's your CodeWarrior version?
Thanks
Jun Zhang
Hello ZhangJennie,
Thank you for your prompt response!
9S12XDP512 and CW 5.2
Thank you again!
Ed
In assembly, we use SECTION directive to declare reloadable section. The syntax is :
<name>: SECTION [SHORT][<number>]
<name> is the name assigned to the section. Two SECTION directives with the same name specified refer to the same section.
<number> is optional.
I just made a small sample on my side. See enclosed. In main.asm, asm_main is defined in MYASMCODE section, temp_byte is defined in MYASMRAM section. Please also see prm file.
Best Regards
Jun Zhang
Hello ZhangJennie,
Thank you for your prompt response again!
I was hoping for an assembly language example. The MCP file opened, but, it was not able to be compiled.
I have attached my test file that I have been trying to learn from.
Thank you very much for your help on this!
Have a wonderful day!
Ed
HI
Please enable "use text based project" , reopen CodeWarrior. then import my demo project again,
Have a nice day,
Jun Zhang
Thank you !
Have a wonderful day!
Ed