home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
programming
/
libtool_463
/
asmsimple
/
simple.asm
next >
Wrap
Assembly Source File
|
1990-06-27
|
1KB
|
41 lines
;NOTE: The libstartup code generated by LibTool opens the exec, DOS, Intuition,
; and Graphics libraries for our library functions and stores the bases
; at the following variables respectively. Therefore, our library code
; doesn't have to open these libs in order use their routines, nor close
; these libs. The next XREF statement should always be included in any
; lib code.
XREF _SysBase,_DOSBase,_IntuitionBase,_GfxBase
;If you need to examine your lib base structure (for some reason) make it
;visible here
XREF _LibBase
;=============================================================
; This is the first function in the library. It adds 2 LONGS
; passed in d0 and d1 with the result returned in d0
XDEF Add2Numbers ;make it visible to our libstartup code
Add2Numbers:
add.l d1,d0
rts
;=============================================================
; This is the second function in the library. It subs 2 LONGS
; passed in d0 and d1 with the result returned in d0
XDEF Sub2Numbers
Sub2Numbers:
sub.l d1,d0
rts
;=============================================================
; This is the third function in the library. It multiplies 2 WORDS
; passed in d0 and d1 with the result returned in d0
XDEF Mult2Numbers
Mult2Numbers:
mulu.w d1,d0
rts