Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.84 KB

File metadata and controls

52 lines (32 loc) · 1.84 KB

SPPU Microprocessor Lab Assignments

Question 1

Write an x86/64 ALP to accept five 64 bit hexadecimal numbers from the user and store them in an array and display the accepted numbers.

Question 2

Write an x86/64 ALP to accept a string and to display its length.

Question 3

Write an x86/64 ALP to find the largest of given byte/word/Dword 64 bit numbers.

Question 4

Write a switch case driven X86/64 ALP to perform 64-bit hexadecimal arithmetic operations (+,-,*, /) using suitable macros. Define procedure for each operation.

Question 5

Write an X86/64 ALP to count number of positive and negative numbers from the array.

Question 6

Write X86/64 ALP to convert 4-digit Hex number into its equivalent BCD number and 5- digit BCD number into its equivalent HEX number. Make your program user friendly to accept the choice from user for: (a) HEX to BCD b) BCD to HEX (c) EXIT. Display proper strings to prompt the user while accepting the input and displaying the result. (Wherever necessary, use 64-bit registers)

Question 7

Write X86/64 ALP to detect protected mode and display the values of GDTR, LDTR, IDTR, TR and MSW Registers. Also identify CPU type using CPUID instruction.

Question 8

Write X86/64 ALP to perform overlapped block transfer with string specific instructions. Block containing data can be defined in the data segment.

Question 9

Write X86 ALP to find, a) Number of Blank spaces b) Number of lines c) Occurrence of a particular character. Accept the data from the text file. The text file has to be accessed during Program_1 execution and write FAR PROCEDURES in Program_2 for the rest of the processing. Use of PUBLIC and EXTERN directives is mandatory

Question 10

Write x86 ALP to find the factorial of a given integer number on a command line by using recursion. Explicit stack manipulation is expected in the code.