Question: Need this to be done in assembly code please! ii. How many sprinklers are on? iii. Which sprinkler are defective (off) ? 9 sprinklers are
Need this to be done in assembly code please!

ii. How many sprinklers are on? iii. Which sprinkler are defective (off) ? 9 sprinklers are UN Defective sprinklers: 16 13 11 9 8 7 5 4 The Sheraton Hotel in Irvine is a 16 floor building. Suppose each bits of AX register represent one floor (the right most bit is representing the first floor). Ten people got into the elevator on the first floor and each pressed a random floor number between 2 and 16 (some random numbers may be the same which indicates more than one person will get off at the same floor). Write a program to (i) display the content of AX at base 2 (ii) use AX register to determine at what floors the elevator will stop AX= 1001 0001 0000 1100 Elevator will stop at floors no. 16 13 9 4 3 ii. How many sprinklers are on? iii. Which sprinkler are defective (off) ? 9 sprinklers are UN Defective sprinklers: 16 13 11 9 8 7 5 4 The Sheraton Hotel in Irvine is a 16 floor building. Suppose each bits of AX register represent one floor (the right most bit is representing the first floor). Ten people got into the elevator on the first floor and each pressed a random floor number between 2 and 16 (some random numbers may be the same which indicates more than one person will get off at the same floor). Write a program to (i) display the content of AX at base 2 (ii) use AX register to determine at what floors the elevator will stop AX= 1001 0001 0000 1100 Elevator will stop at floors no. 16 13 9 4 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
