home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / OTL-MC6.DMS / in.adf / libsrc.lha / LIBSRC / graphicsbase.asm < prev    next >
Encoding:
Assembly Source File  |  1994-04-08  |  549 b   |  40 lines

  1.  
  2. * Maxon C++ Library:
  3.  
  4. * Modul "graphicsbase"
  5.  
  6. * Jens Gelhar 19.03.93, 08.04.94
  7.  
  8.     xdef    _GfxBase
  9.     xdef    _INIT_1_GfxBase_Open_Please_Yeah
  10.     xdef    _EXIT_1_GfxBase_Gnarf_gnarf_gnarf
  11.  
  12.     xref    exit__i
  13.  
  14. _INIT_1_GfxBase_Open_Please_Yeah:
  15.     lea    gfxname(pc),a1
  16.     moveq    #33,d0
  17.     move.l    4.w,a6
  18.     jsr    -552(a6)
  19.     move.l    d0,_GfxBase
  20.     bne.b    ret
  21.     move.l    #-996,-(a7)
  22.     jsr    exit__i
  23.  
  24. _EXIT_1_GfxBase_Gnarf_gnarf_gnarf:
  25.     move.l    _GfxBase,d0
  26.     beq.b    ret
  27.     move.l    d0,a1
  28.     move.l    4.w,a6
  29.     jsr    -414(a6)
  30. ret:    rts
  31.  
  32.  
  33. gfxname:    dc.b 'graphics.library',0
  34.  
  35.     SECTION D,DATA
  36.  
  37. _GfxBase:    dc.l 0
  38.  
  39.     end
  40.