Question

Assembly language x86 processors in c++ starting with asm_


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 943

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Assembly language x86 processors in c++ starting with asm_ 4 The Sheraton Hotel in Irvine is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please write in Assembly Language! Thank you. 4 The Sheraton Hotel in Irvine is a 16...

    Please write in Assembly Language! Thank you. 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...

  • Assembly language x86 processors in c++ Suppose the content of ax register is OxAFBB. Write program...

    Assembly language x86 processors in c++ Suppose the content of ax register is OxAFBB. Write program to do the following 16 15 14 13 12 11 10 987 6 5 4 3 2 1 1 1 0 0 a. Count and display the number of ones b. Determine whether the bit number 8 is on or off c. The bits 14,13,12,11 indicates the number of doors open (1011 means 8+2+1-11 doors open). Determine how many doors are open 01 0

  • Translate the following lines of assembly into C language. MOV.w #0XF009, R5 ; move source to...

    Translate the following lines of assembly into C language. MOV.w #0XF009, R5 ; move source to destination assign a hexadecimal value 0x08 to Register R5 ; Roll destination right and send LSB to Carry 1111 0000 0000 1001 -1111 1000 0000 0100 c-1 RRA. W R5 ; Roll destination right through Carry 1111 1000 0000 0100 -1111 1100 0000o 0010 c -o subtract source from destination ; 1111 1100 0000 0010 -0000 0010 1111 1100 RRC.W R5 R5 SWPB.W sign...

  • Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine...

    Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT