How do I check if an address is a multiple of 8 with bitwise operation in assembly Sparc?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well in C you would need to do something like this:
So just convert this to asm, either by hand or by getting the compiler to help you (e.g.
gcc -S). It should really only be 2 or 3 instructions at most: you just need to AND the address with 7, then test for zero.