| Electronic Components Datasheet Search |
|
PM0044 Datasheet(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0044 Datasheet(HTML) 34 Page - STMicroelectronics |
|
34 / 162 page ![]() STM8 addressing modes PM0044 34/162 Doc ID 13590 Rev 3 Figure 7. Immediate addressing mode example 6.3 Direct addressing mode (Short, Long, Extended) The data byte required for the operation is found by its memory address, which follows the op-code. Direct addressing mode is made of three sub-modes: Previous Value 05BE A PC A6 F8 Steps to Determine Effective Address PC = 05BE PC = PC + 1 = 05BF EA = PC = 05BF New PC = PC + 1 = 05C0 Before Completion F8 05C0 A New PC A6 F8 Instruction Complete A = (EA) = F8 New PC = 05C0 After Completion LD A, #0F8h 05BE 05BF 05C0 05BE 05BF 05C0 VR02059A Table 20. Overview of Direct addressing mode instructions Addressing mode Syntax EA formula Ptr Adr Ptr Size Dest adr Short Direct shortmem (shortmem) op + 1 Byte 00..FF Long Direct longmem (longmem) op + 1..2 Word 0000..FFFF Extended Direct extmem (extmem) op + 1..3 Ext word 000000..FFFFFF Table 21. Available Long and Short Direct addressing mode instructions Instructions Functions LD, LDW Load CP Compare AND, OR, XOR Logical Operations ADC, ADD, SUB, SBC, ADDW, SUBW Arithmetic Addition/Subtraction operations BCP Bit Compare |
|
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 |