home *** CD-ROM | disk | FTP | other *** search
- LIBRARY 'bla.library', 37, 1, 'bla.library by nisse 2001'
-
- /* NOTE1 : LIBRARY mode is not for beginners */
-
- /* NOTE2 : we only have execbase opened for us ! */
-
- /* NOTE3 : do NOT pass out exceptions from librarycode */
-
- /* NOTE4 : filename of library will be src-filename without .e */
-
- /* NOTE5 : unlike ec3.3a, yaec libraries uses SHARED globals */
-
- /* NOTE6 : at the moment, you have to write your .ext/.fd files by hand ! */
-
- /* our public entrypoints, starting at -30 */
-
- ENTRY Nisse IS nisse(D0, A0, A1) -> any regs BUT a2/a4/a7/d7 !
-
- ENTRY BlaBla IS bla(D0, A0)
-
- /* the four required functions */
- /* see amiga dev cd x.x (RKM) for info about theese functions */
- /* for example, do NOT use functions that could break Forbid()! */
-
- PROC Init() -> gets called once (when loaded from disk) !
- ENDPROC libbase -> return base for success
-
- PROC Open() -> gets called on every OpenLibrary() !
- ENDPROC libbase -> return base for success
-
- PROC Close() -> get scalled on every CloseLibrary() !
- ENDPROC
-
- PROC Expunge() -> gets called once (when removed from mem) !
- ENDPROC
-
- /* just some silly functions */
-
- PROC nisse(x, y, z)
- ENDPROC x+y+z
-
- PROC bla(a, b)
- ENDPROC a+b
-
-