Ece 2510 introduction to microprocessors - implement the


Q1) Describe what will happen to the status flags [SF, OF, CF, ZF] as the sequence of the following instructions executed.

1- movw $0x1234, %ax

movw $0xABCD, %bx

cmpw %bx,%ax

2- movw $0x1234, %ax

movw $0xABCD, %bx

add %bx,%ax

Q2) X&Y are two hexadecimal numbers [16-bit]. Write an assembly program for IA-32 to find their multiplication without using any multiplication instructions.

Q3) X&Y are two[16-bit] hexadecimal numbers [X>Y>0]. Write a assembly program for IA-32 program to find their division without using any division instructions.

Q4) Two word-wide signed integers are stored at the physical memory addresses 00A00 and 00A02 respectively. Write a assembly program for IA-32 that computes and stores their sum, difference, product, and quotient (result of division). Store these results at consecutive memory locations starting at physical address 00A10 the in memory. To obtain the difference subtract the integer at 00A02 from the integer at 00A00. For the division, divide the integer at 00A00 by the integer at 00A02.

Q5) Implement the following operation in assembly program for IA-32 without using mul & div instructions

(7(AX) - 5(BX) - (BX/8)) → AX

Q6) Write a assembly program for IA-32 to count up the number of even numbers in the memory locations from 00000 to 000FF.

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: Ece 2510 introduction to microprocessors - implement the
Reference No:- TGS01662971

Expected delivery within 24 Hours