ANSWER:
LDA A //load value of a inTo A
STA ALPHA //store in ALPHA
LDA B //load b into A
LDB C //load c into C
DIV A, B //divide b/c
ADD ALPHA //add ALPHA with A
STORE ALPHA //store ALPHA In Alpha
I need this ASAP Write a SIC assembly program that calculates a+b/c Save the result to...
I need help creating this code. Write an assembly program (MASM and Irvine's libraries) that calculates and prints out the first five Fibonacci numbers FO=0; F1=1; F2=1; F3=F1+F2; F4=F3+F2; F5=F4+F3 If we use 0, 1 and initial conditions the sequence would be: 0, 1, 1, 2, 3 Use the ebx, eax, and ecx registers. Note WriteHex, Writelnt, WriteDec, all use eax So use ebx for first and eax for second and ecx for temporary The calculation could go something like...
I need help with a javascript assignment: Write a program called sum_number.js, that calculates the sum of the numbers contained in a string and displays the result. Use a string containing “2155” as your input value. For example, given the input , let num = “22”, I would sum 2 + 2 for a result of 4. The power is the amps at a given hour times the voltage at the same hour. Calculate the average power consumed for the...
2. Write a C program that using arrays A and B calculates the given formula. The program should save the results in the Carray and then print it. int A[7] = {215, 431, 25, 64, 18, 99, 105); int B[7] = {50, 78, 31, 477, 22, 258, 312); (100 Points) C[i] (A[i]+B[i])x2 median (A)+median(B) Enter your answer 2. Write a program that using arrays A and calculates the given tornog Save the results in the Carray and then print int...
hello please i need help ASAP QUICKLY Write down a complete C++ program that will use the following functions related with a triangle; a) a function that will let the user to input the and to return the sizes of the three sides, let say a, b, c. b) a function that will calculate and return the area of the triangle; Area=(1/2)(a+b+c) c) a function that will print the sizes of the triangle and its area on the screen. Then...
Need to be solved in c# Write the program using the method that calculates the cube of numbers from 1 to 9 that comes as a parameter to it as a series.
i need assembly program with screenshot of output please 1. Write an assembly program that interfaces switches, SW1 and SW2, and LEDs, LED1 and LED2, as follows (You should use interrupts for both switches) [50 pts] Initially, both the LEDs should be turned off. When SW2 is pressed for the first time, LED2 should be turned on. The next time SW2 is pressed, LED2 is turned off. The sequence continues hence each press changes the state of LED2. SW1 controls...
Write a PIC18Fxx2 assembly program that takes the variable A and save into B in inverted the 110010102, then the program finishes with B 010100112-The 1. bit order. For example, if A variable A shall preserve the original value at the end of the program execution. The program shall be implemented using any of the loop and shift techniques discussed in class. 2. Write a PIC18Fxx2 assembly program that makes the calculus of the first eigth (8) terms of the...
Write MARIE assembly language programs that do the following: I. Write a program that inputs three integers, a, b, and c, in that order. It computes the following ia-bi-fc+ c The result should be written to output 2. Write a program that inputs integers, s. y, and z. It outputs the difference of the langest and first element entered. You may assume x. y, and z all have different values. So if 8, 12, and 9 are input, the output...
I need help with this code: Write a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is as follows: futureValue = investmentAmount * (1 + monthlyInterestRate)years*12 Use text fields for interest rate, investment amount, and years. Display the future amount in a text field when the user clicks the Calculate button, as shown in the following figure. It needs to be done in...
I need write a program that calculates and outputs the average of integers 1 7 9 and 34. I'm trying to put the answer in Netbeans, but I'm not getting any outputs. Please help!