home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / Programy / Programowanie / AmigaE / yaec.lha / testsrc / library.e < prev    next >
Encoding:
Text File  |  2001-02-23  |  629 b   |  37 lines

  1. LIBRARY 'bla.library', 37, 1, 'bla.library by nisse'
  2.  
  3. /* NOTE : we only have exec.library opened for us in LIBRARY mode */
  4.  
  5. /* NOTE : do NOT pass out exceptions from librarycode */
  6.  
  7. /* our public entrypoints, starting at -30 */
  8.  
  9.                     -> any regs BUT a2/a4/a7/d7 !
  10. ENTRY Nisse IS nisse(A0, A1, D0)
  11.  
  12. ENTRY BlaBla IS bla(A0, D0)
  13.  
  14. /* the four required functions */
  15.  
  16. PROC Init()
  17. ENDPROC TRUE  -> return TRUE for success
  18.  
  19. PROC Open()
  20. ENDPROC TRUE  -> return TRUE for success
  21.  
  22. PROC Close()
  23. ENDPROC
  24.  
  25. PROC Expunge()
  26. ENDPROC
  27.  
  28. /* just some silly functions */
  29.  
  30. PROC nisse(x, y, z)
  31. ENDPROC x+y+z
  32.  
  33. PROC bla(a, b)
  34. ENDPROC TRUE
  35.  
  36.  
  37.