home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga ISO Collection
/
AmigaUtilCD2.iso
/
Programming
/
C
/
MAXONC3_6OF8.DMS
/
in.adf
/
LIBSRC.LHA
/
LIBSRC
/
abs.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Assembly Source File
|
1994-04-08
|
333 b
|
31 lines
; Maxon C++:
; Library-Modul "abs"
; Jens Gelhar 06.11.91, 08.04.94
xdef _abs,_labs,_vlabs
xdef abs__i,labs__j,vlabs__l
_abs:
abs__i:
_labs:
labs__j:
move.l 4(a7),d0
bpl.b .1
neg.l d0
.1 rts
_vlabs:
vlabs__l:
move.l 8(a7),d1
move.l 4(a7),d0
bpl.b .1
not.l d0
not.l d1
addq.l #1,d0
bhs.b .1
addq.l #1,d1
.1 rts
end