cmp
jne
mov
mov
xor
Send:
not
out
mov bx, 0ffffh
Dly1:
dec
jnz
dec
jnz
jmp
pop
pop
pop
pop
ret
_slave_1
endp
lib_80186
ends
end
Example 11-5. Master/Slave — The slave_1 Routine (Continued)
al, FlashLEDs ; Flash LEDs command
Wait_4_Cmd
; no: then ignore
dx, P1LTCH
; yes: then flash LEDs 10 times
cx, 20
ax, ax
ax
dx, ax
bx
Dly1
cx
Send
short Wait_4_Cmd
dx
cx
bx
ax
SERIAL COMMUNICATIONS UNIT
11-31