ppc64.linux.code.l (702B)
1 # 30sep12abu 2 # (c) Software Lab. Alexander Burger 3 4 # System macros 5 (code 'errno_A 0) 6 cc __errno_location() # Get address of 'errno' 7 ld4 (A) # Load value 8 ret 9 10 (code 'errnoC 0) 11 cc __errno_location() # Get address of 'errno' 12 xchg A C 13 st4 (C) # Store new value 14 ret 15 16 (code 'wifstoppedS_F 0) # WIFSTOPPED 17 ld4 (S I) # Get status 18 cmp B `(hex "7F") # (((status) & 0xff) == 0x7f) 19 ret 20 21 (code 'wifsignaledS_F 0) # WIFSIGNALED 22 ld4 (S I) # Get status 23 and B `(hex "7F") # (((status) & 0x7f) + 1) >> 1) > 0) 24 inc B 25 shr B 1 26 ret 27 28 (code 'wtermsigS_A 0) # WTERMSIG 29 ld4 (S I) # Get status 30 and B `(hex "7F") # ((status) & 0x7f) 31 zxt 32 ret 33 34 # vi:et:ts=3:sw=3