Objectives - To learn how to write a program in assembly language. - To learn the difference
Question:
Objectives
- To learn how to write a program in assembly language.
- To learn the difference between data and code segments.
- Be able to use different instruction mnemonics.
1. Write a program that uses a loop to calculate the first seven values of the Fibonacci number sequence, described by the following formula: Fib(1) = 1, Fib(2) = 1, Fib(n) = Fib(n -1) + Fib(n - 2). ( You need to use only 2 add instructions and without PTR and OFFSET Operators.)
2. Write a program that contains a definition of each of the following data types: BYTE, SBYTE, WORD, SWORD, DWORD, SDWORD, QWORD. Initialize each variable to a value that is consistent with its data type.
3. Write an assembly program that finds the sum for the following array elements 10000h,20000h,30000h,40000h. All elements are of DWORD type.
Statistics For Managers Using Microsoft Excel
ISBN: 9780133130805
7th Edition
Authors: David M. Levine, David F. Stephan, Kathryn A. Szabat