home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / s / stblsrc.zip / STBLANK.I < prev    next >
Text File  |  1989-04-06  |  3KB  |  95 lines

  1. * ST Blank equates:
  2.  
  3.  
  4. * Resource set indicies for STBLANK
  5.  
  6. MAIN            EQU     0       * Form/dialog
  7. LOAD            EQU     1       * BUTTON in tree MAIN
  8. SAVE            EQU     2       * BUTTON in tree MAIN
  9. STAROFF         EQU     5       * BUTTON in tree MAIN
  10. STARON          EQU     6       * BUTTON in tree MAIN
  11. DUPDATE         EQU     7       * IBOX in tree MAIN
  12. DLINC           EQU     8       * BOXCHAR in tree MAIN
  13. DELAY           EQU     9       * BOXTEXT in tree MAIN
  14. DLDEC           EQU     10      * BOXCHAR in tree MAIN
  15. TEST            EQU     12      * BUTTON in tree MAIN
  16. CANCEL          EQU     13      * BUTTON in tree MAIN
  17. OK              EQU     14      * BUTTON in tree MAIN
  18. SDN             EQU     16      * BOXCHAR in tree MAIN
  19. SUP             EQU     17      * BOXCHAR in tree MAIN
  20. BNOW            EQU     18      * BUTTON in tree MAIN
  21. OFF             EQU     19      * BUTTON in tree MAIN
  22. MDN             EQU     21      * BOXCHAR in tree MAIN
  23. UPDATE          EQU     22      * IBOX in tree MAIN
  24. MINS            EQU     23      * BOXTEXT in tree MAIN
  25. SECS            EQU     24      * BOXTEXT in tree MAIN
  26. MUP             EQU     25      * BOXCHAR in tree MAIN
  27. TITLE           EQU     31      * BOXTEXT in tree MAIN
  28. ABOUT           EQU     1       * Form/dialog
  29. ME              EQU     7       * IMAGE in tree ABOUT
  30. ABOK            EQU     8       * BUTTON in tree ABOUT
  31.  
  32. * Misc stuff
  33.  
  34. dos     equ     1       TRAP code for GEMDOS
  35. xbios   equ     14      TRAP code for the XBIOS
  36. ourcookie equ   'STBl'  Our cookie
  37.  
  38. savelen equ     16      Length of .INF file
  39.  
  40. * XBRA stuff
  41.  
  42. xb_magic equ    $58425241       Magic no. for XBRA protocol
  43. xb_id   equ     'STBl'          XBRA ID number
  44. xblock  macro
  45.         dc.l    xb_magic        XBRA magic number
  46.         dc.l    xb_id           Our ID
  47.         ds.l    1               Space for old vector addr
  48.         endm                    End of macro
  49.  
  50. * BIOS function codes
  51.  
  52. ikbd    equ     4               IKBD device number
  53. Bconout equ     3               Bcounout BIOS fn. code
  54.  
  55. * XBIOS function codes:
  56.  
  57. physbase equ    2       Get screen base addr fn code
  58. getres  equ     4       Get screen resolution fn code
  59. color   equ     7       Get screen colour fn code
  60. vsync   equ     37      Wait for vertical sync
  61. supexec equ     38      Execute routine in super mode
  62.  
  63. * GEMDOS function codes:
  64.  
  65. Cconws  equ     $09     Output character string
  66. Malloc  equ     $48     Allocate memory
  67. Ptermres equ    $31     Terminate and Stay Resident
  68. Fopen   equ     $3D     Open file
  69. Fread   equ     $3F     Read from file
  70. Fclose  equ     $3E     Close file
  71.  
  72. * GEM constants
  73.  
  74. ob_size equ     24      Size (in bytes) of a GEM object
  75.  
  76.  
  77. * System variables
  78.  
  79. _vblqueue equ   $456    Pointer to list of VBL routines
  80. nvbls   equ     $454    number of VBL routines
  81. flock   equ     $43E    Floppy lock
  82. _v_bas_ad equ   $44E    Base address of screen memory
  83. bios_trap equ   $0B4    Address of BIOS trap handler
  84. _bootdev  equ   $446    Boot device number
  85. longframe equ   $59E    Long frame flag (i.e. '010, '020 etc.)
  86. _p_cookies equ  $5A0    Cookie jar pointer
  87.  
  88. * Hardware addresses
  89.  
  90. col_pal equ     $FF8240 Start of colour palette registers
  91. res     equ     $FF8260 Screen res.
  92. KACIA   equ     $FFFC00 Keyboard ACIA address
  93. IPRA    equ     $FFFA0B Interrupt Pending Register A (on MFP)
  94.  
  95.