SHR and SAR Commands
问题 I would like to make sure I am understanding this concept 100% and if not get some clarification. In an asm program, if you perform SHR 00110000b you would end up with 00011000b . However, if you were to perform SHR on 11111111b you would end up with an incorrect answer and should use SAR instead? This is because the number is signed? 回答1: if you perform SHR 00110000b you would end up with 00011000b If you shifted one bit to the right, yes. You can specify the shift amount, so it's not fixed