Question: understand how eflag register, maxzx, and movsx work: data myByte BYTE 10001111b code main PROC mov eax, 0; mov ebx, 0 See next slides 18
understand how eflag register, maxzx, and movsx work: data myByte BYTE 10001111b code main PROC mov eax, 0; mov ebx, 0 See next slides 18 Excercise 2- continued 1 Copy the value defined by the myByte data definition movzx ax, myByte ; What is the value in ah register and why? (3P) For more details on Movex and movs Instructions see slide 21 2 Copy the value defined by the myByte data definition movsx bx, myByte ; What is the value in bh register and why? (3P) inc bx ; What is the value of the zero flag (ZR) and why? (2p) :3 Perform an arithmetic operation. sub al, myByte inc al ; What is the value of the zero flag (ZR) and why? (2p) See next slides Excercise 2- continued 4 Use the value defined by the myByte data definition mov al, myByte add al, 256-100011110 ; What is the value of the carry flag (cy) and why? (3p) moval, 1 incal What is the value of the overflow flag (ov)? (2p) For more details on MOVzx and mos Instructions see slide 21 :5 Use the value defined by the myByte data definition, moval, myByte add al, myByte What is the value of the overflow flag (ov)? (3p)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
