home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 42 / af042b.adf / Extensions.lha / _wequ.s < prev   
Text File  |  1992-02-21  |  6KB  |  319 lines

  1. *********************************************************************
  2. *        EQUATES GRAPHIC FUNCTIONS AMOS
  3. *********************************************************************
  4. RwReset        MACRO
  5. Count        SET    0
  6.         ENDM
  7. Rl        MACRO    
  8. Count        SET    Count-4*(\2)
  9. T_\1        equ    Count
  10.         ENDM
  11. Rw        MACRO
  12. Count        SET    Count-2*(\2)
  13. T_\1        equ    Count
  14.         ENDM
  15. Rb        MACRO
  16. Count        SET    Count-(\2)
  17. T_\1        equ    Count
  18.         ENDM
  19. GfxPc        MACRO
  20.         movem.l    d0-d7/a0-a6,-(sp)
  21.         move.l    GfxBase(pc),a6
  22.         jsr    \1(a6)
  23.         movem.l    (sp)+,d0-d7/a0-a6
  24.         ENDM
  25.  
  26. ***************************************************************
  27.  
  28.         RwReset
  29.  
  30. ***************************************************************
  31. *        VECTEURS
  32. ***************************************************************
  33.         Rl    SyVect,1
  34.         Rl    EcVect,1
  35.         Rl    WiVect,1
  36.  
  37. ***************************************************************
  38. *        ADRESSES AMOS / COMPILER
  39. ***************************************************************
  40.         Rl    JError,1
  41.         Rl    CompJmp,1
  42.         Rw    AMOState,1
  43.         Rw    Pour_Plus_Tard,1
  44.  
  45. ***************************************************************
  46. *        Gestions AMOS Multiples
  47. ***************************************************************
  48.         Rl    MyTask,1
  49.         Rw    Inhibit,1
  50.         Rw    OldDma,1
  51.  
  52. ***************************************************************
  53. *        FENETRES
  54. ***************************************************************
  55. * Jeu de caracteres par defaut
  56.         Rl    JeuDefo,1
  57. * Fonction REPETER
  58. WiRepL        equ    80
  59.         Rw    WiRep,1
  60.         Rl    WiRepAd,2
  61.         Rb    WiRepBuf,WiRepL
  62. * Fonction ENCADRER
  63.         Rw    WiEncDX,1
  64.         Rw    WiEncDY,1
  65.  
  66.  
  67. ***************************************************************
  68. *        INTER VBL
  69. ***************************************************************
  70.         Rl    VblCount,1
  71.         Rl    VblTimer,1
  72.         Rw    EveCpt,1
  73.  
  74. ***************************************************************
  75. *        FLAG AMOS/WORKBENCH
  76. ***************************************************************
  77.         Rw    AMOSHere,1
  78.         Rw    NoFlip,1
  79.         Rw    DevHere,1
  80.         Rw    DiscIn,1
  81.  
  82. ***************************************************************
  83. *        GESTION ECRANS
  84. ***************************************************************
  85.  
  86. *************** Variables gestion
  87. EcMax:        equ     12    
  88.         Rw    DefWX,1
  89.         Rw    DefWY,1
  90.         Rw    DefWX2,1
  91.         Rw    DefWY2,1
  92.         Rl    EcCourant,1
  93.         Rw    EcFond,1
  94.         Rw    EcYAct,1
  95.         Rw    EcYMax,1
  96.         Rw    Actualise,1
  97.         Rl    ChipBuf,1
  98.  
  99. ***************    Buffer de calculs des ecrans
  100.         Rw    EcBuf,128
  101.  
  102. *************** Table des NUMEROS ---> ADRESSES
  103.         Rl    EcAdr,EcMax
  104.  
  105. *************** Table de priorite
  106.         Rl    EcPri,EcMax+1
  107.  
  108. *************** FLASHEUR
  109. FlMax:        equ     16    
  110. LFlash:        equ     2+2+4+2+16*4+2
  111.         Rw    NbFlash,1
  112.         Rb    TFlash,LFlash*FlMax
  113.  
  114. *************** SHIFTER
  115. LShift:        equ     2+2+4+2+2+2
  116.         Rb    TShift,LShift
  117.  
  118. *************** FADER
  119.         Rw    FadeFlag,1
  120.         Rw    FadeNb,1
  121.         Rw    FadeCpt,1
  122.         Rw    FadeVit,1
  123.         Rl    FadePal,1
  124.         Rl    FadeCop,1
  125.         Rb    FadeCol,8*32
  126.  
  127. ***************************************************************
  128. *        GESTION COPPER
  129. ***************************************************************
  130. EcTCop        equ      1024
  131.         Rl    EcCop,1
  132.         Rw    Cop255,1
  133.         Rl    CopLogic,1
  134.         Rl    CopPhysic,1
  135.         Rw    CopON,1
  136.         Rl    CopPos,1
  137.         Rl    CopLong,1
  138.  
  139. * Rainbows
  140. NbRain        equ    4
  141.         RsReset
  142. RnDY        rs.w    1
  143. RnFY        rs.w    1
  144. RnTY        rs.w    1
  145. RnBase        rs.w    1
  146. RnColor        rs.w    1
  147. RnLong        rs.w    1
  148. RnBuf        rs.l    1
  149. RnAct        rs.w    1
  150. RnX        rs.w    1
  151. RnY        rs.w    1
  152. RnI        rs.w    1
  153. RainLong    rs.w    1
  154.         Rb    RainTable,RainLong*NbRain
  155.         Rw    RainBow,1
  156.         Rw    OldRain,1
  157.  
  158. * Marques copper liste
  159. CopL1:        equ     16*4*2
  160. CopL2:        equ     16*4
  161. CopML:        equ     (EcMax*CopL1)+10*CopL2
  162.         Rb    CopMark,CopML+4
  163.  
  164. * Liste screen swaps
  165. SwapL:        equ     32
  166.         Rl    SwapList,SwapL*8+4
  167.  
  168. * Interlaced!
  169.         Rw    InterInter,1
  170.         Rw    InterBit,1
  171.         Rl    InterList,EcMax*2
  172.     
  173. ***************************************************************
  174. *        SPRITES HARD
  175. ***************************************************************
  176. HsNb        equ     64
  177. * Limites souris
  178.         Rw    MouYMax,1
  179.         Rw    MouXMax,1
  180.         Rw    MouYMin,1
  181.         Rw    MouXMin,1
  182.  
  183. * Gestion souris
  184.         Rw    MouYOld,1
  185.         Rw    MouXOld,1
  186.         Rw    MouHotY,1
  187.         Rw    MouHotX,1
  188.         Rw    MouseY,1
  189.         Rw    MouseX,1
  190.         Rw    MouseDY,1
  191.         Rw    MouseDX,1
  192.         Rw    YMouse,1
  193.         Rw    XMouse,1
  194.         Rw    OldMk,1
  195.  
  196.         Rw    MouShow,1
  197.         Rw    MouSpr,1
  198.         Rw    OMouShow,1
  199.         Rw    OMouSpr,1
  200.         Rl    MouBank,1
  201.         Rl    MouDes,1
  202.         Rw    MouTy,1
  203.  
  204.         Rl    SprBank,1
  205.         Rl    HsTBuf,1
  206.         Rl    HsBuffer,1
  207.         Rl    HsLogic,1
  208.         Rl    HsPhysic,1
  209.         Rl    HsInter,1
  210.         Rl    HsChange,1
  211.         Rl    HsTable,1
  212.         Rw    HsPMax,1
  213.         Rw    HsTCol,1
  214.         Rw    HsNLine,1
  215.         Rl    HsPosition,2*8+1
  216.  
  217. * Actualisation sprites
  218. HsYAct:        equ     4
  219. HsPAct:        equ     6
  220.         Rw    HsTAct,4*HsNb
  221.  
  222. * Structure SPrites
  223. HsPrev:        equ     0
  224. HsNext:        equ     2
  225. HsX:        equ     4
  226. HsY:        equ     6
  227. HsYr:        equ     8
  228. HsLien:        equ     10
  229. HsImage:    equ     12
  230. HsControl:    equ     16
  231. HsLong:        equ     20        
  232.         Rb    SpBase,HsLong+4
  233.  
  234. ***************************************************************
  235. *        BOBS
  236. ***************************************************************
  237.         Rw    BbMax,1
  238.         Rl    BbDeb,1
  239.         Rl    BbPrio,1
  240.         Rl    BbPrio2,1
  241.         Rl    Priorite,1
  242.         Rw    PriRev,1
  243. *        Rb    TRetour,256
  244.  
  245. ***************************************************************
  246. *        AMAL!
  247. ***************************************************************
  248.         Rl    AmDeb,1
  249.         Rl    AmFreeze,1
  250.         Rl    AmChaine,1
  251.         Rl    AmBank,1
  252.         Rw    AmRegs,26
  253.         Rw    SyncOff,1
  254.         Rl    AMALSp,1
  255.         Rw    AmSeed,1
  256.  
  257. ***************************************************************
  258. *        COLLISIONS
  259. ***************************************************************
  260.         Rl    TColl,8
  261.  
  262. ***************************************************************
  263. *        BLOCS
  264. ***************************************************************
  265.         Rl    AdCBlocs,1
  266.         Rl    AdBlocs,1
  267.  
  268. ***************************************************************
  269. *        SYSTEME
  270. ***************************************************************
  271.         Rl    GPile,1
  272.         Rl    IntBase,1
  273.         Rl    IntScreen,1
  274.         Rl    GfxBase,1
  275.         Rl    LayBase,1
  276.         Rl    FntBase,1
  277.         Rl    ScreenAdr,1
  278.         Rl    WindowAdr,1
  279.         Rl    Layer,1
  280.         Rl    BitMap,1
  281.         Rl    RastPort,1
  282.         Rl    ClipRect,1
  283.         Rl    FontInfos,1
  284.         Rw    FontILong,1
  285.         Rw    PaPeek,1
  286.         Rl    SaveZo,1
  287.         Rw    SaveNZo,1
  288. * Sauvegarde du BitMap
  289.         Rb    SBitMap,40
  290. * Sauvegarde de la fonte systeme
  291.         Rb    SFonte,14+4
  292. * Interrupt VBL
  293. Lis        equ    $16
  294. Lio        equ    $30
  295. Lmsg        equ    $20
  296.         Rb    VBL_Is,Lis
  297. * Interrupt clavier
  298.         Rb    IoDevice,Lio+Lmsg+8
  299.         Rb    Interrupt,Lis
  300. * Buffer clavier
  301. ClLong        equ     32*3
  302. FFkLong        equ     24
  303.         Rl    ClAsc,1
  304.         Rw    ClFlag,1
  305.         Rw    ClQueue,1
  306.         Rw    ClTete,1
  307.         Rb    ClShift,4
  308.         Rb    ClTable,12
  309.         Rb    ClBuffer,ClLong
  310.         Rl    ClLast,1
  311.         Rb    TFF2,10*FFkLong
  312.         Rb    TFF1,10*FFkLong
  313.  
  314. *************** Longueur de la structure W.S
  315.         Rb    L_Trp,4
  316. L_Trappe    equ    -Count
  317. ***********************************************************
  318.  
  319.