Samsung KS57C2308 Manual page 143

Single-chip cmos microcontroller
Table of Contents

Advertisement

KS57C2308/P2308/C2316/P2316
LDI
— Load Data Memory and Increment
LDI
dst,src
Operation:
Operand
A,@HL
Description:
The contents of a data memory location are loaded into the accumulator, and the contents of the
register L are incremented by one. If an overflow occurs (e.g., if the resulting value in register L
is 0H), the next instruction is skipped. The contents of data memory and the carry flag value are
not affected.
Operand
A,@HL
Example:
Assume that register pair HL contains the address 2FH and internal RAM location 2FH contains
the value 0FH:
LD
LDI
JPS
JPS
The instruction "JPS XXX" is skipped since an overflow occurred after the "LDI A,@HL" and the
instruction "JPS YYY" is executed.
Operation Summary
Load indirect data memory to A; increment register L
contents and skip on overflow
Binary Code
1
0
0
HL,#2FH
A,@HL
XXX
YYY
0
1
0
1
0
; A
(HL) and L
; Skip
; H
2H and L
SAM47 INSTRUCTION SET
Bytes
1
Operation Notation
A
(HL), then L
skip if L = 0H
L+1
0H
Cycles
2 + S
L+1;
5-69

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents