Codewarrior 10.1 and HCS08 Assembly

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

Codewarrior 10.1 and HCS08 Assembly

1,551件の閲覧回数
terra
Contributor I

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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

967件の閲覧回数
bigmac
Specialist III

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

 

0 件の賞賛
返信

967件の閲覧回数
terra
Contributor I

Thanks mac, It is really help a lot

0 件の賞賛
返信