neg 3BH
As I understand, I should get C5, but from my own calculations I got C4 (I switch each 1 to 0 and each 0 to 1). What’s the problem?
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.
neg computes the two’s complement negative value, not the bitwise negative. You’ll want a not instruction, or manually add one to the answer to get your desired result.