Dear Gurus!
I'm just begginner level student of assembly and I found the following question in my assignment. However, I've solved it but I want confirmation about its correctness, and if it isn't correct, please do it. (These results have been achieved by using NASM assembler).
Problem: Fill out the corresponding values in HEX in the register table after the execution of each instruction.
Highly thanx.Code:Instructions AL Carry Flag mov al, 5dh shr al, 3 mov al, 3ch sar al, 6 mov ax, 12d4h rol ax, 7 rcr ax, 2 sar ax, 1 Solution: Instructions AL Carry Flag mov al, 5dh 5d 0 shr al, 3 0b 1 mov al, 3ch 3c 1 sar al, 6 00 1 mov ax, 12d4h 12d4 1 rol ax, 7 00 0 rcr ax, 2 00 0 sar ax, 1 00 0
Mood.




Reply With Quote