NEC PD750008 User Manual
Page 202

182
µPD750008 USER'S MANUAL
Example To output 16-bit data of BUFF1 and BUFF2 serially from bit 0 of port 3:
CLR1
MBE
MOV
XA,BUFF1
MOV
BSB0,XA
; Set BSB0 and BSB1
MOV
XA,BUFF2
MOV
BSB2,XA
; Set BSB2 and BSB3
MOV
L,#0
LOOP0:
SKT
BSB0, @L ; Tests the specification bit of BSB
BR
LOOP1
NOP
; Dummy (For timing adjustment)
SET1
PORT3. 0
; Sets bit 0 of port 3
BR
LOOP2
LOOP1:
CLR1
PORT3. 0
; Clears bit 0 of port 3
NOP
; Dummy (For timing adjustment)
NOP
LOOP2:
INCS
L
; L <- L + 1
BR
LOOP0
RET