11 Appendix D: Assembler Program
mov
al, 0bah
out
dx, al
mov
dx, 370h
;assign INT10 to COM3
mov
al, 28h
;and INT11 to COM4
out
dx, al
mov
dx, 371h
mov
al, 43h
out
dx, al
;--- exit configuration mode ---
mov
dx, 370h
mov
ax, 0aah
out
dx, al
;--- load addresses and interrupts into the DOS configuration space ---
mov
ax, 040h
mov
ds, ax
mov
di, 4
;enter the addresses of COM3 and COM4 to the
mov
[di],
3E8h
;DOS
configuration
space
mov
di, 6
mov
[di], 2E8h
mov
di, 10h
;enter the new number of the serial ports to the
mov
ax, [di]
; DOS configuration space
mov
bx, ax
and
bx, 0F1FFh
and
ax, NOT 0F1FFh
shr
ax, 9
add
al, 2
shl
ax
,9
or
ax,
bx
mov
[di], ax
;--- finish the program with the DOS function 4Ch ---------
mov
ax, 4C00h
;loading function number, error code 0
int
21h
;call up DOS
prog endp
;end of the PROG-Procedur
;== end ===============================================================
code ends
;end of the CODE-Segment
end prog
Kontron User's Guide DIMM-PC/ETH+COM
22