Appendix B – 103
(To prevent contention, disable access to the SSD,
by writing a “1” to 387H.)
MOV AL,1
OUT DX,AL
MOV DX, 21AH
MOV AL, 80H
;
set auto increment
OUT DX, AL
MOV DX, 218H
Bit 15 is enable for current page. Bit 14–0 are A23–A14.
40H=A20=100000. 41H=A20+A14=104000.
MOV AX, 8040
;first 16K starting at D000
OUT DX, AX
INC AX
OUT DX, AX
;
second 16K starting at D400
INC AX
OUT DX, AX
;third 16K starting at D800
INC AX
OUT DX, AX
;
fourth 16K starting at DC00
Access the page by writing/reading through the EMS window:
MOV AX,0D000H
MOV ES,AX
(Sets ES to the window segment.)
XOR DI,DI
MOV ES:[DI],AH
(To store something in the window.)
MOV AH,ES:[DI]
(To retrieve something from the window.)
When your program has finished with the EMS memory:
StockCheck.com
Summary of Contents for 4010
Page 20: ...Overview 10 This page intentionally left blank S t o c k C h e c k c o m ...
Page 52: ...Watchdog Timer 42 This page intentionally left blank S t o c k C h e c k c o m ...
Page 56: ...Serial EEPROM 46 This page intentionally left blank S t o c k C h e c k c o m ...
Page 68: ...PC 104 58 This page intentionally left blank S t o c k C h e c k c o m ...
Page 76: ...Troubleshooting 66 This page intentionally left blank S t o c k C h e c k c o m ...