11 Appendix D: Assembler Program
Kontron User's Guide DIMM-PC/ETH+COM
21
11
Appendix D: Assembler Program
The following assembler program is the source code of the software tool DIO1I111.EXE
;*******************************************************************************************;
;* DIO1I110.ASM
*;
;*--------------------------------------------------------------------
*;
;*
Program for activating the additional serial ports
*;
;*
COM3 and COM4 on the DIMM-I/O modules
*;
;*
COMBO
and
COM1 *;
;*--------------------------------------------------------------------
*;
;* Autor
: F. Krauss
*;
;* Creation date
: 30.03.1999
*;
;* Last update
: 30.03.1999
*;
;*--------------------------------------------------------------------
*;
;*******************************************************************************************;
;== Stack ==============================================================
stackseg segment para STACK 'STACK'
;definition of the Stack-Segment
dw 256 dup (?)
;the stack covers 256 Words
stackseg ends
;end of the Stack-Segment
;== Code ===============================================================
code segment para 'CODE'
;definition of the CODE-Segment
assume
cs:code
;CS
refers
to
the
Code-Segment
prog proc far
;this procedure ist the real
;main program and it was executed
;after starting the program
;--- enter configuration mode ---
mov
dx, 370H
mov
ax, 055H
cli
out
dx, al
out
dx, al
sti
;--- configure registers ---
mov
dx, 370h
;initialize COM3 at the adress 3E8
mov
al, 24h
out
dx, al
mov
dx, 371h
mov
al, 0fah
out
dx, al
mov
dx,
370h
;
initialize COM4 at the adress 2E8
mov
al, 25h
out
dx, al
mov
dx, 371h