English
Language : 

AN1106 Datasheet, PDF (1/9 Pages) STMicroelectronics – TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7
AN1106
APPLICATION NOTE
TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7
by Microcontroller Division Application Team
1 INTRODUCTION
This application note has been written to help users translate their HC05 assembly source
code into ST7 source code.
Even if both assembly languages are quite similar, the philosophy and program structure are
quite different.
A software translator (“migr2st7”) has been developed by STMicroelectronics and is available
on the MCU ON CD.
For more information on the ST7 Assembly Tool Chain, please refer to the application note
“Starting with ST7 Assembly Tool Chain” (AN988) and the software library available on In-
ternet (www.st.com/product/support) or the ST7 CD ROM.
2 QUICK PROCEDURE
Follow these steps to use the conversion software:
1. Install the “migr2st7” software translator by double-clicking on migr2st7.exe (in the CD
ROM)
2. Click on migr2st7.exe and enter the name and the path of the source file (HC05) and the
target file (ST7). The input filename default extension is “.asm”.
3. Click on “Convert”: a message box titled “Finished-Trans” is displayed with the translation
result “Translation 6805 to ST7 succeeded” or an error message.
5. Remember to rename all your.st7 translated sources files into .asm files before assembling
with the ST7 assembler (you can directly call your translated files *.asm).
6. In order to use the HC05 to ST7 translator, you should have a source file with HC05 assem-
bly code written for use with the 2500AD assembler. Otherwise, you will have to modify the
software by hand. Refer to the ST7 assembler documentation and application notes for
details using the ST7 instructions. See also Section 3.2 (RECOMMENDATIONS AND
ADVICE).
AN1106/0200
1/9
1