EMS6500 EM Microelectronic, EMS6500 Datasheet - Page 48

no-image

EMS6500

Manufacturer Part Number
EMS6500
Description
Microcontroller Development System 4-bit (Emmon), Simulators 4-bit
Manufacturer
EM Microelectronic
Datasheet
Assembler Syntax
ADD Reg
INC
SUB Reg
DEC Reg
Copyright  2003, EM Microelectronic-Marin SA
3.2.4. Arithmetic Operations
3.2.4.1. Direct arithmetic operations
Reg
The basic arithmetic operations (INC, DEC, ADD and SUB) can be direct, indexed,
direct with shift right or indexed with shift right. When the instruction is combined
with a shift right it is performed according to the following principal.
Cy
Cy
Cy
Function
Accu = IO(Reg) + Accu
Accu = IO(Reg) + 1
Accu = IO(Reg) - Accu
Accu = IO(Reg) - 1
Fig. 27 Principal of arithmetic operations followed by shift right
3
3
3
Accu
2
2
2
1
1
1
0
0
Operator
0
40
Shift right
3
Register
State Z
2
Development System
z
z
z
z
1
0
if (Accu >15) c = 1
if (Accu >15) c = 1
if(Accu>=0) c=1
if(Accu>=0) c=1
www.emmicroelectronic.com
State Cy
EM66xx
Binder 4.3-01/03 Rev. B/495

Related parts for EMS6500