home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CEXPRESS.ZIP / SCREEN.ASM / REVERSE.ASM < prev    next >
Assembly Source File  |  1989-05-03  |  435b  |  21 lines

  1. ;void  reverse();
  2.  
  3.     EXTRN  _memory_model:byte
  4.     EXTRN  _color:byte
  5.  
  6. _TEXT    SEGMENT BYTE PUBLIC 'CODE'
  7.     ASSUME CS:_TEXT
  8.     PUBLIC _reverse
  9. _reverse proc near
  10.     mov  al,_color        ;get the current color
  11.     and  al,10001000B    ;relevant bits OFF
  12.     or   al,1110000B    ;relevant bits ON
  13.     mov  _color,al        ;set new value
  14.     cmp  _memory_model,0    ;quit
  15.     jle  quit        ;
  16.     db   0CBh        ;RET far
  17. quit:    ret            ;RET near
  18. _reverse endp
  19. _TEXT    ENDS
  20.     END
  21.