Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
101
Добавлен:
01.03.2016
Размер:
921.07 Кб
Скачать

PM0044

STM8 addressing modes

 

 

6.5Indirect (Short Pointer Long, Long Pointer Long)

Table 28. Overview of Indirect addressing instructions

Addressing mode

 

Syntax

EA formula

Ptr Adr

Ptr

Dest adr

 

Size

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Short Pointer Long

Indirect

 

((shortptr.w))

((shortptr.w))

00..FF

Word

0000..FFFF

 

 

 

 

 

 

 

 

Long Pointer Long

Indirect

 

((longptr.w))

((longptr.w))

0000..FFFF

Word

0000..FFFF

 

 

 

 

 

 

 

 

The data byte required for the operation is found by its memory address, located in memory (pointer).

The pointer address follows the op-code. The indirect addressing mode is made of three sub-modes:

Table 29. Available Long Pointer Long and Short Pointer Long Indirect Instructions

Instructions

Functions

 

 

LD, LDW

Load

 

 

CP

Compare

 

 

AND, OR, XOR

Logical Operations

 

 

ADC, ADD, SUB, SBC

Arithmetic Addition/Subtraction operations

 

 

BCP

Bit Compare

 

 

CALL, JP

Call or Jump subroutine

 

 

Table 30. Available Long Pointer Long Indirect Instructions

Instructions

Functions

 

 

CLR

Clear

 

 

TNZ

Test Negative or Zero

 

 

CPL, NEG

1’s or 2’s Complement

 

 

SLA, SLL, SRL, SRA, RLC, RRC

Shift and Rotate Operations

 

 

SWAP

Swap Nibbles

 

 

INC, DEC

Increment/Decrement

 

 

Doc ID 13590 Rev 3

45/162

Соседние файлы в папке Минимум документации STM8