| Electronic Components Datasheet Search |
|
AN1106 Datasheet(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1106 Datasheet(HTML) 6 Page - STMicroelectronics |
|
6 / 9 page ![]() 6/9 TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7 4.3 LABELS In order to be able to see all the labels from the emulator (in the disassembler window, a label name is more significant than an address), it’s better to declare them all as public (a simple dot placed before the label name). For labels which are called from another module, create a .inc file to declare them as “EX- TERN”: appli.asm: st7/ TITLE “appli.asm” MOTOROLA ; Motorola format (default), other formats are also available: ; Intel, Zilog or Texas. #include “appli.inc” ; lib appli.s05 #include “variable.inc” #include “constant.inc” #include “ST72251.inc”; this is the map file (see below). WORDS segment ‘rom’ ; the source code is written in the ROM segment. ; ORG ROM .main LD A,#$10 LD var2,A .again DEC var2 JRNE again CLR X .go LD A,(table,X) ADD A,#1 LD (table,X),A INC X CP X,#4 JRNE go ........ .loop JRA loop ; Don’t forget to put the interrupt sub-routine library section here even if you don’t use any interrupts. END |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |