Create an array of ten random 32-bit integers


Question1. Write a program which will create an array of ten random 32-bit integers, and that will display on the monitor the numbers followed by either words “ has the fourth bit set ‘or’ doesn’t have the fourth bit ‘set’. Use the test instruction to test whether the bit is set or not. Note: The fourth bit from the least significant end (the 8’s position).

Question2. Write a program which will input a number from keyboard, and then display the number in binary form, as well as number of one’s in the number. Hint: Shift value left or right and count the number of times the carry bit is set.

Question3. Write a program which will input two numbers from keyboard and carry out each of the signed and unsigned multiply and divide instructions. For each instruction, the program must display output that clearly shows the result of the instructions. Test and submit with data which shows the use of the edx register and the results with combinations of positive and negative values. Note that it is useful to use small negative numbers to make large unsigned values.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Create an array of ten random 32-bit integers
Reference No:- TGS01568

Expected delivery within 24 Hours