Question

Using assembly language in microwoft visual studio write the following code with procedure with c...

using assembly language in microwoft visual studio
write the following code
with procedure with correct number of Fib numbers


Your program should detect the largest Fib number that can be calculated. Besides storing the result in an array, print them on the screen.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

-MODEL SMALL DATA NUM I DB 7 NUM-2 DB1 VI DB7 CODE MAIN PROc MOV AX DATA MoV NUM-1,0 MOV NUM-2,a 1 MoV DL, NUM-1 OR DL, 30H MMov v2, AH Moy, AH,02H INT 21H INT 21 H CHIFT MoV AL,N UM-2 MOV NUM-L, AL LOOP L1 AX, 4 Cool! MOV NT 21 MAIN ENDP END MAIN

Add a comment
Know the answer?
Add Answer to:
Using assembly language in microwoft visual studio write the following code with procedure with c...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • this is assembly language for x-86 processors using microsoft visual studio Create a procedure named FindThrees...

    this is assembly language for x-86 processors using microsoft visual studio Create a procedure named FindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array. Otherwise, return 0. The procedure’s input parameter list contains a pointer to the array and the array’s size. Use the PROC directive with a parameter list when declaring the procedure. Preserve all registers (except EAX) that are modified by the procedure. Write a test program that calls FindThrees...

  • Write a program that outputs "Hello World!" in assembly language using the MASM assembler. Code should...

    Write a program that outputs "Hello World!" in assembly language using the MASM assembler. Code should be in 32 bit code. preferably in visual studio

  • Program must be in C language and MUST be able to run on visual studio 2....

    Program must be in C language and MUST be able to run on visual studio 2. Using Pointers and Arrays 2.1 Write a function bubblesort which will accept an array of double precision floating point numbers of length N and sort the array. Ref: https://en.wikipedia.org/wiki/Bubble_sort (I can verify this is accurate) 2.2 Write a program which exercises the bubblesort. For a good test, the program should have more than 20 values.

  • MIPS - assembly language Task I (1 mark): Write a program to calculate the nth Fibonacci...

    MIPS - assembly language Task I (1 mark): Write a program to calculate the nth Fibonacci number based on an iterative approach where value n is read from the keyboard and stored in your main program that is calling fib.  The main program reads number ‘n’ -- restrict range of ‘n’ to 2-50, and display an error message if this condition is not satisfied.  The main program calls fib with parameter passing. Procedure fib should return the calculated...

  • C++ Visual Studio (#include <stdio.h> - NO iostream) Assume this code: int arr[10]; Now write code...

    C++ Visual Studio (#include <stdio.h> - NO iostream) Assume this code: int arr[10]; Now write code that fills the array with 10 values of your choosing. Now write code that calculates the average of the first and the last elements of arr. Now print the the calculated average.

  • Must be done in C++ 2013 microsoft visual studio Write a program that creates a 4...

    Must be done in C++ 2013 microsoft visual studio Write a program that creates a 4 x 5 two-dimensional array. The program should use loops to populate the array using the rand, srand and time functions with random numbers between 10 and 60. After the values have populated the array, output the values of the array to the screen in something that looks like a 4 x 5 table.

  • 1. Write a C programme by using visual Studio: a) Write a function with parameters that...

    1. Write a C programme by using visual Studio: a) Write a function with parameters that returen the largest of three integer arguments. So users could call your function (name: max3) to output the maximum of three input values. b) Make a function outside of the main routine. And in the main routine, please call this function and print the harmonic mean. The harmonic mean of two numbers is obtained by taking the inverses of the two numbers, averaging them,...

  • Step 1. Write a program in assembly language (using macros) to print out the following messages...

    Step 1. Write a program in assembly language (using macros) to print out the following messages on the screen [20 marks]: Hello, programmers! Welcome to the world of, Linux assembly programming! Step 2. Write a C function to passed two numbers to the function and calculate the sum of all the numbers between them (both inclusive). [50 marks] a. Make a version with for loop b. Make a version with while loop c. Make a version with do.. while loop...

  • Write a C++ program IN VISUAL STUDIO CODE that will display the value and logical address...

    Write a C++ program IN VISUAL STUDIO CODE that will display the value and logical address of an uninitialized float array with size twenty (20) and a reference pointing to the array.

  • Write this code using x86 assembly language using the irvine32 library

    Write this code using x86 assembly language using the irvine32 library Create a procedure that fills an array of doublewords with N random integers, making sure the values fall within the range j...k, inclusive. When calling the procedure, pass a pointer to the array that will hold the data, pass N, and pass the values of j and k. Preserve all register values between calls to the procedure. Write a test program that calls the procedure twice, using different values...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT