INSTRUCTION SET

MOVX @Rr,A Move Accumulator Contents to External Data Memory

11 00 1 1 00 0 r 1

(Not in 8021, 8022)

This is a 2-cycle instruction. The contents of the accumulator are moved to the external data memory location addressed by register 'r'Register. 'r' contents are unaffected.

((Rr))-- Ar=0-1

Example: Assume RO contains 11000111.

MXDMA: MOVX @RO,A

;MOVE CONTENTS OF ACC TO

 

;LOCATION 199 IN EXPANDED

 

;DATA MEMORY

NOP The NOP Instruction

1000010000 I

No operation is performed. Execution continues with the following instruction.

ORL A,Rr Logical OR Accumulator With Register Mask

101001 1rrr i

Data in the accumulator is logically ORed with the mask contained in working register 'r'.

(A)-- (A) OR (Rr)

r=Q-7

Example: ORREG: ORL A,R4

;'OR'ACC CONTENTS WITH

 

;MASK IN REG 4

ORL A,@Rr Logical OR Accumulator With Memory Mask

10 100 1000rl

Data in the accumulator is logically ORed with the mask contained in the resident data memory location referenced by register 'r',bits 0-5*

(A) -- (A) OR ((Rr))

Example: ORDM: MOV RO,#3FH ORL A,@RO

r=0-1

;MOVE '3F'HEX TO REG 0 ;'OR'ACC CONTENTS WITH MASK ;IN LOCATION 63

ORL A,#data Logical OFJ Accumulator With Immediate Mask

10 1 0 0 1 0 0 1 1 1 Id7 dB ds d4 I d3 d2 d1 do I

This is a 2-cycle instruction. Data in the accumulator is logically ORed with an immediately-specified mask.

(A)-- (A) OR data

 

Example: ORID: ORL A,#'X'

;'OR'ACC CONTENTS WITH MASK

Mnemonics copyright Intel Corporation 1976.

;01011000 (ASCII VALUE OF 'X')

'0-6for 8039/8049

4-27

Page 100
Image 100
Intel mcs-48 manual NOP The NOP Instruction, ORL A,Rr Logical or Accumulator With Register Mask