ID_ASM.EQU 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. ;
  2. ; Equates for all .ASM files
  3. ;
  4. ;----------------------------------------------------------------------------
  5. INCLUDE "GFXE_APC.EQU"
  6. ;----------------------------------------------------------------------------
  7. CGAGR = 1
  8. EGAGR = 2
  9. VGAGR = 3
  10. GRMODE = EGAGR
  11. PROFILE = 0 ; 1=keep stats on tile drawing
  12. SC_INDEX = 03C4h
  13. SC_RESET = 0
  14. SC_CLOCK = 1
  15. SC_MAPMASK = 2
  16. SC_CHARMAP = 3
  17. SC_MEMMODE = 4
  18. CRTC_INDEX = 03D4h
  19. CRTC_H_TOTAL = 0
  20. CRTC_H_DISPEND = 1
  21. CRTC_H_BLANK = 2
  22. CRTC_H_ENDBLANK = 3
  23. CRTC_H_RETRACE = 4
  24. CRTC_H_ENDRETRACE = 5
  25. CRTC_V_TOTAL = 6
  26. CRTC_OVERFLOW = 7
  27. CRTC_ROWSCAN = 8
  28. CRTC_MAXSCANLINE = 9
  29. CRTC_CURSORSTART = 10
  30. CRTC_CURSOREND = 11
  31. CRTC_STARTHIGH = 12
  32. CRTC_STARTLOW = 13
  33. CRTC_CURSORHIGH = 14
  34. CRTC_CURSORLOW = 15
  35. CRTC_V_RETRACE = 16
  36. CRTC_V_ENDRETRACE = 17
  37. CRTC_V_DISPEND = 18
  38. CRTC_OFFSET = 19
  39. CRTC_UNDERLINE = 20
  40. CRTC_V_BLANK = 21
  41. CRTC_V_ENDBLANK = 22
  42. CRTC_MODE = 23
  43. CRTC_LINECOMPARE = 24
  44. GC_INDEX = 03CEh
  45. GC_SETRESET = 0
  46. GC_ENABLESETRESET = 1
  47. GC_COLORCOMPARE = 2
  48. GC_DATAROTATE = 3
  49. GC_READMAP = 4
  50. GC_MODE = 5
  51. GC_MISCELLANEOUS = 6
  52. GC_COLORDONTCARE = 7
  53. GC_BITMASK = 8
  54. ATR_INDEX = 03c0h
  55. ATR_MODE = 16
  56. ATR_OVERSCAN = 17
  57. ATR_COLORPLANEENABLE = 18
  58. ATR_PELPAN = 19
  59. ATR_COLORSELECT = 20
  60. STATUS_REGISTER_1 = 03dah
  61. MACRO WORDOUT
  62. out dx,ax
  63. ENDM
  64. if 0
  65. MACRO WORDOUT
  66. out dx,al
  67. inc dx
  68. xchg al,ah
  69. out dx,al
  70. dec dx
  71. xchg al,ah
  72. ENDM
  73. endif
  74. UPDATEWIDE = 22
  75. UPDATEHIGH = 13 ; hack for catacombs
  76. ;
  77. ; tile info offsets from segment tinf
  78. ;
  79. SPEED = 402
  80. ANIM = (SPEED+NUMTILE16)
  81. NORTHWALL = (ANIM+NUMTILE16)
  82. EASTWALL = (NORTHWALL+NUMTILE16M)
  83. SOUTHWALL = (EASTWALL+NUMTILE16M)
  84. WESTWALL = (SOUTHWALL+NUMTILE16M)
  85. MANIM = (WESTWALL+NUMTILE16M)
  86. INTILE = (MANIM+NUMTILE16M)
  87. MSPEED = (INTILE+NUMTILE16M)
  88. IFE GRMODE-EGAGR
  89. SCREENWIDTH = 40
  90. ENDIF
  91. IFE GRMODE-CGAGR
  92. SCREENWIDTH = 128
  93. ENDIF