Question

ssembly Language Programming with x86, IRVINe MASM 1. Write a program to add 7 12 times...

ssembly Language Programming with x86, IRVINe MASM

1. Write a program to add 7 12 times and print out the result

-------------------------------------------------------------------------------

Write a program to print and add 10 20 30 40 50   ; you can use a loop

The output should be “The sum of 10 20 30 40 50 ”

0 0
Add a comment Improve this question Transcribed image text
Answer #1

load total, 0

load count, 12

loop1:

add total, 7

dec count

cmp count, 0

jnz loop1

msg db ,total

-------------------------------------------------------------------------

load total, 0

load initial, 10

loop1:

cmp initial, 50

add total, initial

add count,10

jnz loop1

msg db ,total

Add a comment
Know the answer?
Add Answer to:
ssembly Language Programming with x86, IRVINe MASM 1. Write a program to add 7 12 times...
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
  • I need help with this program. It is in Irvine MASM Assembly Language. You are to...

    I need help with this program. It is in Irvine MASM Assembly Language. You are to write a program to compute the results of a postfix expression. The expression has the format operand operand operator   where the operator can be +, -, *. You must use a stack to evaluate the expressions. (The system Stack will not work.) Print out the input expression and the results of the evaluation. Read the data from a file and output to a file....

  • Programming Problem: SUMMING ARRAY ELEMENTS -       Use Assembly Language x86 (MASM) Write an assembly code...

    Programming Problem: SUMMING ARRAY ELEMENTS -       Use Assembly Language x86 (MASM) Write an assembly code calculates the sum of all array elements. Save the sum in the EAX register. ------------------------------------------------------------------------------- This is my code so far: INCLUDE Irvine32.inc N=10 .data array SDWORD N DUP(0,1,2,3,4,5,6,7,8,9) j DWORD ? k DWORD ? .code     main PROC         ; not complete          exit    main ENDP END main

  • Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine...

    Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....

  • MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the...

    MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest common divisor of two positive numbers. . • Your program should read the two positive integers using dialog boxes. If they are not positive, a message box should be displayed with an appropriate message. • Your program needs to have a procedure that takes two positive integers as parameters. • You need to follow cdecl protocol for parameter passing. • Display the valid...

  • [Please write in x86 Assembly Language and attach a screenshot of the result from VS] Thank...

    [Please write in x86 Assembly Language and attach a screenshot of the result from VS] Thank you!!! Write a program to add the numbers of a word array of size 10 and store the result in a variable called total. Use a loop in this program.

  • MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest...

    MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest common divisor of two positive numbers. . • Your program should read the two positive integers using dialog boxes. If they are not positive, a message box should be displayed with an appropriate message. • Your program needs to have a procedure that takes two positive integers as parameters. • You need to follow cdecl protocol for parameter passing. • Display the valid...

  • Using C language to write a program. First, to write Hello Wrold Second. Use a while...

    Using C language to write a program. First, to write Hello Wrold Second. Use a while loop to calculate the sum of positive even integers below 200 and print the result to the standard output. This is very similar to the sum example we have studied. Think about how much you should increase the loop control variable to get to the next even number. Your program should output the following text. output should be : Hello, World! 9900

  • Assembly Language For x86 Processors 7th edition When you write programs to solve the programming exercises,...

    Assembly Language For x86 Processors 7th edition When you write programs to solve the programming exercises, use multiple procedures when possible. Follow the style and naming conventions used in this book. Use explanatory comments in your programs at the beginning of each procedure and next to nontrivial statements. Random Strings Create a procedure that generates a random string of length L, containing all capital letters. When calling the procedure, pass the value of L in EAX, and pass a pointer...

  • Programming: Write a SPIM assembly language program num-vowel.s based on the hardware implementation method in the...

    Programming: Write a SPIM assembly language program num-vowel.s based on the hardware implementation method in the lab notes and the above practice. The program will do the following: Prompt the user to enter a string. The program will call the procedure vowelp to check if a character entered in the string is a vowel or not. Count how many vowels and how many non-vowels are in the string. Print out the calculated results with appropriate message. Hint: A loop is...

  • Answer should be in C programming language Write a program that will create an array of...

    Answer should be in C programming language Write a program that will create an array of 10 floating point numbers and take input 10 floats from keyboard. The program will print the position (index) of the maximum and minimum number among them

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
ADVERTISEMENT