The document provides 5 practice exercises for a final test on microprocessors' architecture laboratory. The exercises involve writing x86 assembly programs that: 1) call a subprogram to find the maximum of two 16-bit numbers, 2) count how many times a reference value is found in an array, 3) copy a character string from one memory location to another, 4) replace values in an array smaller than a reference value with the reference value, and 5) compare two arrays of 8-bit integers and count differences. It also lists two additional possible exercises similar to programs from a previous lab.
The document provides 5 practice exercises for a final test on microprocessors' architecture laboratory. The exercises involve writing x86 assembly programs that: 1) call a subprogram to find the maximum of two 16-bit numbers, 2) count how many times a reference value is found in an array, 3) copy a character string from one memory location to another, 4) replace values in an array smaller than a reference value with the reference value, and 5) compare two arrays of 8-bit integers and count differences. It also lists two additional possible exercises similar to programs from a previous lab.
The document provides 5 practice exercises for a final test on microprocessors' architecture laboratory. The exercises involve writing x86 assembly programs that: 1) call a subprogram to find the maximum of two 16-bit numbers, 2) count how many times a reference value is found in an array, 3) copy a character string from one memory location to another, 4) replace values in an array smaller than a reference value with the reference value, and 5) compare two arrays of 8-bit integers and count differences. It also lists two additional possible exercises similar to programs from a previous lab.
Politehnica University of Bucharest Electronics, Telecommunications and Information Technology Faculty
Microprocessors Architecture Laboratory Final Test Practice Exercises
Final test practice exercises
1. Write an x86 assembly program that calls a subprogram named maximum. This subprogram receives through the AX and BX registers two 16 bit, signed numbers and returns through the CX register their maximum. Check the correct functionality of the program using multiple input parameters values. 2. Write an x86 assembly program that passes through an array of 16 bit, unsigned integers (declared in the program) and stores into AX the number of times a certain reference value ref is found. Check the correct functionality of the program using different arrays and reference values. 3. Write an x86 assembly program that copies an array of characters (a source string) stored in the memory into another memory zone (the destination string) using the string transfer instructions. The elements will be passed through form right to left (from higher addresses to lower addresses). 4. Write an x86 assembly program that passes through an array of 8 bit, unsigned integers (declared in the program) and replaces all the values smaller than a certain reference value ref with that particular value. Check the correct functionality of the program using different arrays and reference values. 5. Write an x86 assembly program that compares two arrays composed of 8 bit signed integers. The arrays have the same length. The program should store in the BX register the number of differences found. Check the functionality for different arrays.
Other possible exercises
1. Problems similar to the fourth program in lab 4. 2. Problems similar to the first and the second programs in lab 4.
Python Advanced Programming: The Guide to Learn Python Programming. Reference with Exercises and Samples About Dynamical Programming, Multithreading, Multiprocessing, Debugging, Testing and More