.title abs Integer absolute value .ident /000001/ ; ;+ ; ; Index Absolute value ; ; Usage ; ; abs(val) ; int val; ; ; Description ; ; Return absolute value of the integer argument. ; ; Bugs ; ;- ; Edit history ; ; 000001 Original JMT .psect c$code ABS:: MOV 2(SP), R0 BGE 10$ NEG R0 10$: RTS PC .END