INSTRUCTION SET

OUTL Pp,A Output Accumulator Data to Port 1 or 2

10011110ppl

This is a 2-cycle instruction. Data residing in the accumulator is transferred (written) to port 'p'and latched.

(Pp) ....

(A)

p=1-2

Example: OUTLP: MOV A,R7 OUTL P2,A MOV A,R6 OUTL P1,A

;MOVE REG 7 CONTENTS TO ACC ;OUTPUT ACC CONTENTS TO PORT 2 ;MOVE REG 6 CONTENTS TO ACC ;OUTPUT ACC CONTENTS TO PORT 1

RAD Move Conversion Result Register to Accumlator (8022 Only)

11000100001

This is a two cycle instruction. The contents of the AID conversion result register are moved to the accumulator.

(A) .... (CRR)

RET Return Without PSW Restore

11000100111

This is a 2-cycle instruction. The stack pointer

(PSW bits 0-2) is decremented. The program counter is then restored from the stack. PSW bits 4-7 are not restored.

(SP) .... (SP)-1

(PC) .... «SP»

RETI Return From Interrupt (8022 Only)

11001100111

This is a two cycle instruction. The stack pointer is decremented and the program counter is restored from the stack. Interrupt input logic is re-enabled.

(SP)-- (SP)-1 (PC) .... «SP) +1

·Mnemonicscopyright Intel Corporation 1976.

4-29

Page 102
Image 102
Intel mcs-48 manual Outl Pp,A Output Accumulator Data to Port 1 or