home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / zen_list.exe / LST8-11.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  476b  |  19 lines

  1. ;
  2. ; *** Listing 8-11 ***
  3. ;
  4. ; Sets the BIOS equipment flag to select an 80-column
  5. ; color monitor.
  6. ; Uses accumulator-specific MOV, AND, and OR instructions.
  7. ;
  8.     call    ZTimerOn
  9.     rept    1000
  10.     sub    ax,ax
  11.     mov    es,ax        ;point ES to the segment at 0
  12.     mov    al,es:[410h]    ;get the equipment flag
  13.     and    al,not 30h    ;mask off the adapter bits
  14.     or    al,20h        ;set the adapter bits to select
  15.                 ; 80-column color
  16.     mov    es:[410h],al    ;set the new equipment flag
  17.     endm
  18.     call    ZTimerOff
  19.