home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
assemblr
/
library
/
zenlib
/
lst8_11.asm
< prev
next >
Wrap
Assembly Source File
|
1990-02-15
|
476b
|
19 lines
;
; *** Listing 8-11 ***
;
; Sets the BIOS equipment flag to select an 80-column
; color monitor.
; Uses accumulator-specific MOV, AND, and OR instructions.
;
call ZTimerOn
rept 1000
sub ax,ax
mov es,ax ;point ES to the segment at 0
mov al,es:[410h] ;get the equipment flag
and al,not 30h ;mask off the adapter bits
or al,20h ;set the adapter bits to select
; 80-column color
mov es:[410h],al ;set the new equipment flag
endm
call ZTimerOff