You are on page 1of 1

Theory 5 assignment

Name:

1. (2pts) Find 2 different ways to check if EAX is 0 and jump to label Zero if it is.
Don't use CMP.

2. (2 pt) Given an array arr WORD 1, 2, 3, 4, 5


and the following instruction: mov ebx, OFFSET arr
Using ebx (not the array name), write one instruction to reverse the MSB of the last
2 elements of arr. Reverse means 0 to 1 or 1 to 0. You should not depend on the
5 data values in arr given above, where the MSB is 0. The code should reverse the
MSB even if it's 1.

You might also like