home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / masm / masm6 / show / show.inc < prev    next >
Encoding:
Text File  |  1991-01-14  |  1.9 KB  |  61 lines

  1. ;* SHOW.INC - Include file used by DOS and OS/2 versions of SHOW.
  2. ;* Contains constants, prototypes and global variables. Items used
  3. ;* by ignoreed by OS/2 version)
  4.  
  5. ; Constants for real and protect
  6. LINE_POS        EQU     6       ; Position of line number string
  7. FILE_POS        EQU     6       ; Position of file name string
  8. X_MAX           EQU     80      ; Number of columns
  9. STAT_CLR        EQU     030h    ; Status line color - black on cyan
  10. STAT_BW         EQU     070h    ; Status line B&W - black on white
  11. SCRN_CLR        EQU     017h    ; Screen color - white on blue
  12. SCRN_BW         EQU     007h    ; Screen B&W - white on black
  13.  
  14. IFDEF OS2_INCLUDED
  15. NAME_MAX        EQU     255     ; OS/2 maximum file specification
  16. ELSE
  17. NAME_MAX        EQU     66      ; DOS maximum file specification
  18. ENDIF
  19.  
  20. ; DOS only
  21. IFNDEF OS2_INCLUDED
  22. SEG_CLR         EQU     0B800h  ; Color address
  23. SEG_MONO        EQU     0B000h  ; Monochrome address
  24. ENDIF
  25.  
  26. ; Prototypes
  27. Show            PROTO
  28. GetNamePos      PROTO pchSpec:PTR BYTE
  29. GetVid          PROTO
  30. Pager           PROTO cLines:SWORD
  31. GoBack          PROTO
  32. GoForeward      PROTO
  33. EndCount        PROTO
  34. BinToStr        PROTO i:WORD, pch:PTR BYTE
  35. Quit            PROTO
  36.  
  37. ;OS/2 Only
  38. IFDEF OS2_INCLUDED
  39. ShowLine        PROTO pchIn:PBYTE, y:WORD, cbMax:WORD, pcelAtrib:PBYTE
  40. ELSE
  41. ; DOS only
  42. ShowLine        PROTO fpBuffer:FAR PTR BYTE, y:WORD, attr:BYTE
  43. IsEGA           PROTO
  44. CellFill        PROTO yStart:WORD, cbCell:WORD, celFill:WORD
  45. FillTab         PROTO
  46. ENDIF
  47.  
  48.  
  49. ; Global variables
  50.  
  51.         .DATA
  52.         EXTERNDEF       atSta:BYTE, atScr:BYTE, segBuf:WORD, offBuf:WORD
  53.         EXTERNDEF       cbBuf:WORD, stLine:BYTE, yMax:WORD, yCur:WORD
  54.  
  55.         ; DOS Only
  56.         EXTERNDEF       segVid:WORD, fCGA:BYTE, celCur:WORD, atCur:BYTE
  57.  
  58.         ; OS/2 Only
  59.         EXTERNDEF       celScr:WORD
  60. @CurSeg ENDS            ; End current
  61.