Question: A building is surrounded with 4 areas:NW , N E , S W , S E . Each area is using 4 security lights and

A building is surrounded with 4 areas:NW,NE,SW,SE. Each area is using 4 security lights and each bits of ax register is representing a set of security lights in each region.
Suppose the conten of ax register is a hexadecimal number BEEF.
\table[[ax,1,0,1,1,1,1,1,0,1,1,1,0,1,1,1,1],[No.,1,2,3,4,J,,7,,7,10,11,12,13,14,15,16],[area,,,W,,,,E,,,,,,,,,]]
Write a program In MASM x86 to
a. Display the ax register at base 2
b. Determine which security lights are off?
Sample output
Ax=1011111011101111
The following security lights are off:
2,8,12
 A building is surrounded with 4 areas:NW,NE,SW,SE. Each area is using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!