Finding the absolute value of a number in 8085 microprocessor assembly language
问题 I have a task of finding the absolute value of any given number in 8085 assembly language. The algorithm is the following (found on the internet): mask = n >> 7 (number itself is 8 bits) (mask + n) XOR mask My question is that how would I implement this in assembly language. It seems that I should be using the "RRC" command but that performs circular shift on the number and the algorithm doesnt seem to work. Any ideas would be appreciated. Cheers. 回答1: The n>>7 in that abs algorithm is an