home *** CD-ROM | disk | FTP | other *** search
- ;
- ; *** Listing 8-10 ***
- ;
- ; Sets the BIOS equipment flag to select an 80-column
- ; color monitor.
- ; Uses mod-reg-rm AND and OR instructions.
- ;
- call ZTimerOn
- rept 1000
- sub ax,ax
- mov es,ax ;point ES to the segment at 0
- and byte ptr es:[410h],not 30h
- ;mask off the adapter bits
- or byte ptr es:[410h],20h
- ;set the adapter bits to select
- ; 80-column color
- endm
- call ZTimerOff