home *** CD-ROM | disk | FTP | other *** search
- LIBRARY DEVICE 'bla.device', 37, 1, 'bla.device by nisse 2001'
-
- /* NOTE1 : LIBRARY mode is not for beginners ! */
-
- /* NOTE2 : DEVICE mode is for experts ! */
-
- /* NOTE3 : we only have execbase opened for us */
-
- /* NOTE4 : do NOT pass out exceptions from devicecode */
-
- /* NOTE5 : filename of device will be src-filename without .e */
-
- /* NOTE6 : this is just a very thin skeleton-device */
-
- /* NOTE7 : it does not work as is, you have to code the rest */
-
- /* NOTE8 : DEVICE mode is not tested yet ! */
-
- /* the two required entries of a device, starting at -30 */
-
- ENTRY BeginIO IS beginIO(A1) -> dont change
-
- ENTRY AbortIO IS abortIO(A1) -> dont change
-
-
- /* the four required standard functions */
- /* see amiga dev cd x.x (RKM) for info about theese functions */
- /* for example, do NOT call functions that could break Forbid() ! */
-
- PROC Init() -> gets called once (when loaded from disk) !
- -> do stuff
- ENDPROC libbase -> return base for success
-
- PROC Open(iob, unitnum, flags) -> gets called on every OpenDevice() !
- -> do stuff
- ENDPROC libbase -> return base for success
-
- PROC Close(iob) -> get called on every CloseDevice() !
- -> do stuff
- ENDPROC
-
- PROC Expunge() -> gets called once (when removed from mem) !
- -> do stuff
- ENDPROC
-
- /* empty device functions */
-
- PROC beginIO(iob)
- ->do stuff here
- ENDPROC
-
- PROC abortIO(iob)
- -> do stuff here
- ENDPROC
-
-