I have HC08 Assembly code was build using using P&E Microassembler and try to move (Port) this code into HCS08, I down laoded the codewarrior 10.1 with Win XP and giving me error for assembly directive such as
.base
.pagewidth
A1603
Any advice
Hello,
HC08 assembly code is backward compatible with HCS08 assembler. However, the assembly directives (or pseudo-ops) used by P&E assembler are different from those of the CW assembler. If you wish to use the CW assembler for an existing program, you will need to modify the code to suit. Here are some examples:
Replace the directives DB with DC.B, and DW with DC.W.
Where braces {} are used, replace with parenthesis ().
The format of macros is quite different for the two assemblers.
For CW assembler, a directive must start at column 2, or greater, and does not require a prefixed symbol $ or #.
There are other differences.
Your existing HC08 code should assemble with P&E HCS08 assembler, but this would need to be purchased.
Regards,
Mac
Thanks mac, It is really help a lot