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

PM0044

STM8 instruction set

 

 

7.2Nomenclature

7.2.1Operators

is loaded with ...

↔ has its value exchanged with ...

7.2.2CPU registers

A

accumulator

X

X index register (2 bytes)

XL

least significant byte of the X index register (1 byte)

XH

most significant byte of the X index register (1 byte)

Y

Y index register (2 bytes)

YL

least significant byte of the Y index register (1 byte)

YH

most significant byte of the Y index register (1 byte)

PC

program counter register (3 bytes)

PCL

low significant byte of the program counter register (1 byte)

PCH

high significant byte of the program counter register (1 byte)

PCE

extended significant byte of the program counter register (1 byte)

SP

stack pointer register (2 bytes)

CC

Condition code register (1 byte)

CC.V

overflow flag of the code condition register (1 bit)

CC.I0

interrupt mask bit 0 of the code condition register (1 bit)

CC.H

half carry flag of the code condition register (1 bit)

CC.I1

interrupt mask bit 1 of the code condition register (1 bit)

CC.N

negative flag of the code condition register (1 bit)

CC.Z

zero flag of the code condition register (1 bit)

CC.C carry flag of the code condition register (1 bit)

7.2.3Code condition bit value notation

-bit not affected by the instruction

1

bit forced to 1 by the instruction

0

bit forced to 0 by the instruction

X bit modified by the instruction

7.2.4Memory and addressing

M(...)

content of a memory location

R

8-bit operation result value

R(...)

8-bit operation result value stored into the register or memory shown inside parentheses

Rn

bit n of the operation result value (0≤n≤7)

XX.B

bit B of the XX register or memory location

imm.b

byte immediate value

imm.w

16-bit immediate value

shortmem

memory location with short addressing mode (1 byte)

longmem

memory location with long addressing mode (2 bytes)

extmem

memory location with extended addressing mode (3 bytes)

shortoff

short offset (1 byte)

longoff

long offset (2 bytes)

extoff

extended offset (3 bytes)

[shortptr.w] short pointer (1 byte) on long memory location (2 bytes). Assembler notation = [$12.w].

[longptr.w]

long pointer (2 bytes) on long memory location (2 bytes). Assembler notation = [$1234.w]

[longptr.e]

long pointer (2 bytes) on extended memory location (3 bytes). Assembler notation = [$1234.e]

Doc ID 13590 Rev 3

63/162

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