home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 522.lha / CpuBlit_v1.0 / src / scroll.h < prev    next >
C/C++ Source or Header  |  1991-06-09  |  2KB  |  32 lines

  1. /****************************************************************************
  2.  *
  3.  *        SCROLL.H
  4.  *
  5.  *        Declares functions and variables available in the assembly
  6.  *        file SCROLL.S.
  7.  *
  8.  *        We have to do a little trick to allow the smalldata model to be
  9.  *        used with Blink. We want to modify the longword stored at
  10.  *        BltBitMapAddress. However, this is located in the code section
  11.  *        of the program. The solution is to declare it as a function, then
  12.  *        setup a pointer to it from inside the actual code and modify it
  13.  *        through the pointer. This is a little ugly, but reduces the code
  14.  *        size by about 20%.
  15.  *
  16.  ***************************************************************************/
  17.  
  18. extern void NewBltBitMap();            /* Our replacement BltBitMap routine    */
  19. extern void BltBitMapAddress();        /* Points to original BltBitMap()        */    
  20.  
  21. extern void Friend1();                /* Ptr to check fn for one active task    */
  22. extern void Friend2();                /* Ptr to check fn for two active tasks    */
  23. extern void ShareBlit();            /* Ptr to check fn to share CPU/blitter    */
  24. extern void StartBlit();            /* Ptr to check fn that always uses CPU    */
  25. extern void ExitBlit();                /* Ptr to check fn that never uses CPU    */
  26.  
  27. extern void (*BlitFunc)();            /* Holds Ptr to current check function    */
  28. extern long UsageCount;                /* No. of callers currently in CPU code    */
  29. extern long OnlySingle;                /* True if restricting blits to 1 bmap    */
  30. extern long Broken;                    /* True if handling broken software        */
  31. extern BYTE MinTaskPri;                /* Ignore tasks with pri <= this value    */
  32.