Advertisement
Zeda

gramequ

Feb 28th, 2020
1,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;===============================================================================
  2. ; Grammer Equates
  3. ;===============================================================================
  4. tokenhook_optout  = 0   ;used in appv GVarData
  5.  
  6. #define MODULE_VERSION 3
  7. moduleExec      = saveSScreen
  8. gbuf            = plotSScreen
  9. pvars           = smallEditRAM
  10. ThetaPrimeVar   = pvars+106
  11. TempWord1   = OP6-1       ;2       2
  12. TempWord2   = TempWord1+2 ;2       4
  13. TempWord3   = TempWord2+2 ;2       6
  14. TempWord4   = TempWord3+2 ;2       8
  15. TempWord5   = TempWord4+2 ;2      10
  16. textRow     = TempWord5+2 ;1      11
  17. textCol     = textRow+1   ;1      12
  18.  
  19. g_ram       = 8020h
  20.  
  21. FS_begin  = iMathPtr4
  22. FS_end    = FS_begin+2
  23.  
  24. BufPtr      = g_ram        ;2
  25. GrayBufPtr  = BufPtr+2     ;2
  26. gbuf_temp   = GrayBufPtr+2 ;2
  27. FontPointer = gbuf_temp+2  ;2
  28. font_ptr_page=FontPointer+2;1
  29. g_internal  = font_ptr_page+1
  30. Ans         = appErr2      ;2
  31.  
  32.  
  33. ;==============================
  34. ; Grammer Flags
  35. ;==============================
  36. InternalFlag    = 33
  37. SlowTextFlag    =   0
  38. IntActiveFlag   =   1
  39. FactorialFlag   =   2
  40. errorChecking   =   3
  41. grayFlag        =   4   ;this determines the checker pattern for the next gray object drawn
  42. bit32           =   5   ;This determines if the output was 32-bit or not
  43. Mod2nd          =   6
  44. nogrampkg       =   7   ;This determines the checker pattern for grayscale mode
  45.  
  46. UserFlags       = 34
  47. InvertTextFlag  =   0
  48. InvertLCDFlag   =   1
  49. OnBlockFlag     =   2
  50. baseInput       =   3
  51. pxlBoundsRes    =   4
  52. SignedText      =   5
  53. ;    =   6
  54. ;    =   7
  55.  
  56. ParticleFlag    = 35
  57. Xis0            = 0
  58. Xis95           = 1
  59. Yis0            = 2
  60. Yis63           = 3
  61. OffScrn         = 4
  62.  
  63. InternalFlag2   = 35
  64. inputflag       = 0
  65.  
  66. ModeFlags2      = 35
  67. floatmode       = 5
  68.  
  69. textmode_default  = 0
  70. textmode_varwidth = 1
  71. textmode_smallfixed=2
  72. textmode_Omnicalc = 3
  73. textmode_OS_small = 4
  74. textmode_OS_large = 5
  75.  
  76.  
  77. FS_uint8        = 0
  78. FS_str          = 3
  79. FS_array        = 4
  80. ;===============================================================================
  81. ; Grammer Jump Table
  82. ;===============================================================================
  83. cmdJmp              = $4023
  84. ProgramAccessStart  = $4026
  85. CompatCall          = $4029
  86. SelectedProg        = $402C
  87. ExecOP1             = $402F
  88. ParseFullArg        = $4032
  89. ParseNextFullArg    = $4035
  90. ParseNextFullArg_Inc= $4038
  91. ParseCondition      = $403B
  92. DrawRectToGraph     = $403E
  93. GraphToLCD          = $4041
  94. VPutSC              = $4044
  95. GetKey              = $4047
  96. GetGrammerText      = $404A
  97. GetGrammerText_DE   = $404D
  98. GetGrammerStr       = $4050
  99. GetKeyDebounce      = $4053
  100. SearchString        = $4056
  101. FS_createvar_max    = $4059
  102. FS_delvar           = $405C
  103. FS_resize           = $405F
  104. FS_findvar          = $4062
  105. ErrMem              = $4065
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement