| Electronic Components Datasheet Search |
|
UM0144 Datasheet(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0144 Datasheet(HTML) 9 Page - STMicroelectronics |
|
9 / 92 page ![]() ST7 Assembler Linker 2 ST7 Addressing Modes UM0144 9/92 Two-operand instructions are coded with destination operand appearing at first position. For example: 2.3 Short and long addressing modes For ST7 there are two addressing modes that differ in memory address size (i.e. one byte for short mode and two bytes for long mode). Because of these different addressing modes, the target address range of the operands will depend upon the addressing mode chosen: Some instructions accept both long and short addressing modes, while others only accept one or the other. For example: For ST7 instructions supporting both short and long formats, when external symbols are referenced, long mode is chosen by the Assembler. For example: 2.4 Inherent addressing mode This concept is hardware-oriented, meaning that instruction operands are coded inside the operation code. At the source coding level, operands are written explicitly. Examples: lab01 ld A,memory ; load accumulator A with memory contents lab02 ld memory,A ; load memory location with A contents ld X,A ; load X with accumulator contents 0-$FF for short addressing mode $100-$FFFF for long addressing mode lab10 add A,memory ; accepts both types of addressing modes lab11 inc memory ; accepts only short addressing mode EXTERN symb3 ; symb1 equ $10 ; ... ld A,symb1 ; short mode ld A,symb3 ; long mode chosen lab06 push A ; put accumulator A onto the stack lab07 mul X,A ; multiply X by A |
|
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 |