User`s guide

Introduction LZ87010 Advance User’s Guide
1-18 1/15/03
1.8 Instruction Set Summary
The LZ87010 instruction set consists of the 8051 instruction set plus two new instructions:
TRAP and MOVC @(DPTR++),A.
The TRAP instruction causes the LZ87010 to enter debug mode under software control.
Once in debug mode, single-stepping and other debugging features can be used. Debug
mode can also be entered under hardware control through the debug interface.
The MOVC @(DPTR++),A instruction allows code memory to be written. It copies the con-
tents of the Accumulator to the code memory address pointed to by the DPTR register,
then increments DPTR. This instruction writes to the currently selected code memory
space (internal or external program memory).
Table 1-3 summarizes the LZ87010’s instruction set. Table 1-4 lists the mnemonics for
operands. Table 1-5 lists the instructions that affect flag bits.
Writing improperly to the Flash memory can
damage the device. The appropriate Flash
timings must be observed.
Table 1-3. Instruction Set Summary
INSTRUCTION DESCRIPTION BYTES CYCLES
CALL addr 11 Absolute jump to subroutine 2 2
ADD A,#d Add immediate to A 2 1
ADD A,@Ri Add indirect memory to A 1 1
ADD A,dir Add direct byte to A 2 1
ADD A,Rn Add register to A 1 1
ADDC A,#d Add immediate to A with carry 2 1
ADDC A,@Ri Add indirect memory to A with carry 1 1
ADDC A,dir Add direct byte to A with carry 2 1
ADDC A,Rn Add register to A with carry 1 1
AJMP addr 11 Absolute jump unconditional 2 2
ANL A,#d AND immediate to A 2 1
ANL A,@Ri AND indirect memory to A 1 1
ANL A,dir AND direct byte to A 2 1
ANL A,Rn AND register to A 1 1
ANL C,/bit AND direct bit inverse to carry 2 2
ANL C,bit AND direct bit to carry 2 2
ANL dir,#d AND immediate to direct byte 3 2
ANL dir,A AND A to direct byte 2 1
CJNE @Ri,#d,rel Compare indirect immediate, jump if not equal 3 2
CJNE A,#d,rel Compare A immediate, jump if not equal 3 2
CJNE A,dir,rel Compare A direct, jump if not equal 3 2
CAUTION