57
Example program:
;
INITIAL TIMER PERIOD COUNTER
;
W_LOOP:
MOV AX, 6F02H
;setting the time-out value
MOV BL, 30
;time-out value is 48 seconds
INT 15H
;
;
ADD YOUR APPLICATION PROGRAM HERE
;
CMP EXIT_AP, 1
;is your application over?
JNE W_LOOP
;No, restart your application
MOV AX, 6F02H
;disable Watchdog Timer
MOV BL, 0
;
INT 15H
;
;
EXIT
;
58
Appendix B. Address Mapping
IO Address Map
I/O address Range Description
000-01F
DMA Controller #1
020-021
Interrupt Controller #1, Master
040-05F 8254
timer
060-06F 8042
(Keyboard
Controller)
070-07F
Real time Clock, NMI Mask
080-09F
DMA Page Register
0A0-0BF Interrupt
Controller
#2
0C0-0DF
DMA Controller #2
0F0
Clear Math Coprocessor Busy
0F1
Reset Math Coprocessor
0F2
Core logic programming configuration
0F8-0FF Math
Coprocessor
1F0-1F8 Fixed
Disk
200-207 Game
I/O
278-27F
Parallel Printer Port 2 (LPT3)
2E8-2EF Serial
Port
4
2F8-2FF Serial
Port
2
300-31F Prototype
Card
360-36F Reserved
378-37F
Parallel Printer Port 1 (LPT2)
3B0-3BF
Monochrome Display and Printer Adapter
(LPT1)
3C0-3CF Reserved
3D0-3DF Color/Graphics
Monitor
Adapter
3E8-3EF Serial
Port
3
3F0-3F7 Diskette
Controller
3F8-3FF Serial
Port
1