home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
221_01
/
abs.asm
< prev
next >
Wrap
Assembly Source File
|
1979-12-31
|
256b
|
21 lines
;small-c V2.3
NAME abs
GLOBAL abs
abs
LDD 2,S
PSHS D
LDD #0
CMPD ,S++
LBLE cc2
LDD 2,S
COMA
COMB
ADDD #1
RTS
cc2
LDD 2,S
RTS
cc3
RTS
END