NEC PD750008 User Manual

Page 97

Advertising
background image

77

CHAPTER 5 PERIPHERAL HARDWARE FUNCTIONS

(3) 8-bit manipulation instructions

The MOV, XCH, and SKE instructions as well as the IN and OUT instructions can be used for ports 4 and

5 that allow 8-bit manipulation. As with 4-bit manipulation, memory bank 15 must be selected in advance.

Example

The data contained in the BC register pair is output on the output port specified by 8-bit data

applied to ports 4 and 5.

SET1

MBE

SEL

MB15

IN

XA,PORT4

; XA <– ports 5,4

MOV

HL,XA

; HL <– XA

MOV

XA,BC

; XA <– BC

MOV

@HL,XA

; Port (L) <– XA

Advertising
This manual is related to the following products: