mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
18 lines
183 B
ArmAsm
18 lines
183 B
ArmAsm
|
|
.globl _xinc
|
|
_xinc:
|
|
movl 4(%esp), %eax
|
|
lock incl 0(%eax)
|
|
ret
|
|
|
|
.globl _xdec
|
|
_xdec:
|
|
movl 4(%esp), %eax
|
|
lock decl 0(%eax)
|
|
jz iszero
|
|
movl %eax, 1
|
|
ret
|
|
iszero:
|
|
movl %eax, 0
|
|
ret
|
|
|