Specify the value transferred to the destination register by

Specify, the value transferred to the destination register by each of the following instructions. mov cl, 27 shr 2 mov cx, 237h + 0A2Bh mov al, 27 mod 4 mov bx, not 01100101b

Solution

a. mov cl, 27 shr 2: shr stands for shift right. 27 shr 2 is, shift the decimal number 27 to the right by 2 bits. Converting 2710 to binary gives: 000110112. And now, shifting this to the right by 2 positions gives: 000001102 = 610. Therefore, the instruction is equal to mov cl, 6. That is cl is stored a value of 6.

b. mov cx, 237h + 0A2Bh: 237h + 0A2Bh = C62h.. Therefore, the instruction is equal to mov cx, C62h. That is cx is stored a hexadecimal value of 0C62h.

c. mov al, 27 mod 4: 27 mod 4 = 3. And mov al, 3 will store the value of 3 in the register al.

d. mov bx, not 01100101b: not 01100101b = 10011010b. And its decimal equivalent number is: 154. That is bx is stored a decimal value of 154.

 Specify, the value transferred to the destination register by each of the following instructions. mov cl, 27 shr 2 mov cx, 237h + 0A2Bh mov al, 27 mod 4 mov bx

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site