1: /*
   2:  * Copyright (c) 1987 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifdef LIBC_SCCS
   8:         <@(#)abs.s	1.1 (Berkeley) 1/21/87\0>
   9:         .even
  10: #endif LIBC_SCCS
  11: 
  12: /* abs - int absolute value */
  13: 
  14: #include "DEFS.h"
  15: 
  16: ENTRY(abs)
  17:         mov     2(sp),r0        / grab number
  18:         bge     1f
  19:         neg     r0              /   and negate is less than 0
  20: 1:
  21:         rts     pc              / return with booty

Defined functions

_abs defined in line 16; used 135 times
Last modified: 1987-01-25
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2576
Valid CSS Valid XHTML 1.0 Strict