home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / SCREEN / BORDER.ZIP / BRDCHG.ASM < prev   
Encoding:
Assembly Source File  |  1990-12-01  |  1.1 KB  |  41 lines

  1. ;--------------------------------------------------------------------
  2. ;    This is a C callable function which uses the BIOS to
  3. ; change the hardware border on a video display.
  4. ;
  5. ; Written By: Gary L. Hennigan <ghenniga@NMSU.Edu>
  6. ;          New Mexico State University
  7. ;          Las Cruces, NM
  8. ; Date: 11/30/90
  9. ;
  10. ; Note that I use Turbo Assembler's simplified segment directives
  11. ; and stack frame addressing conventions so this code will not
  12. ; compile properly under MSASM.
  13. ;--------------------------------------------------------------------
  14. ; Variable Used:
  15. ;              brd_color (int) -  The border color to change to.
  16. ;--------------------------------------------------------------------
  17. ; Pre-processor Equates
  18. ;
  19.     BIOS_INT    EQU    10h
  20.     BIOS_CC        EQU    0Bh
  21. ;--------------------------------------------------------------------
  22. ; Set up the segments with Turbo's simplified segment directives
  23. ;
  24.     DOSSEG
  25.     .MODEL SMALL
  26.     .DATA
  27.     .CODE
  28.     PUBLIC    C bord_change
  29.  
  30. bord_change PROC
  31.     ARG brd_color:WORD
  32.     push    bp
  33.     mov    bp,sp
  34.     mov    bx, brd_color
  35.     mov    ah, BIOS_CC
  36.     int    BIOS_INT
  37.     pop    bp
  38.     ret
  39. bord_change ENDP
  40.     END
  41.