Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .global checkSW
- .type checkSW, @function
- checkSW:
- pushl %ebp
- movl %esp, %ebp
- pushl %ebx
- fnstsw %ax
- xor %ebx, %ebx
- movl $17 , %ecx
- decl %ecx
- testBits:
- rol $1, %ax
- setc %bl
- cmp $1, %bl
- je storeResult
- loop testBits
- movl $-1, %eax
- finish:
- popl %ebx
- leave
- ret
- storeResult:
- movl %ecx, %eax
- decl %eax
- jmp finish
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement