QUESTION 38
Write a program in assembly that adds the sequence of numbers 2,4,6,8,10... etc until the total is greater than 100.
Please find the code below::
.data
prompt: .asciiz "\n Adding : "
prompt1: .asciiz " Sum now : "
.text
li $t0,2 #seq to be add
li $s0,0 #start with zero
loop:
add $s0,$s0,$t0
li $v0,4
la $a0,prompt #it will print prompt
syscall
li $v0,1
move $a0,$t0
syscall
li $v0,4
la $a0,prompt1 #it will print prompt
syscall
li $v0,1
move $a0,$s0
syscall
add $t0,$t0,2
blt $s0,100, loop
output:

QUESTION 38 Write a program in assembly that adds the sequence of numbers 2,4,6,8,10... etc until...
write an 8086 assembly program that 1) adds two operand. 2) that adds operands until the new value to be added is 0. 3) Write a program that increments by 2 the content of a register 10 times.
Code in assembly language please
"Write an assembly 32 bit program that adds two numbers (other than 5 and 6) and stores the value to a variable called 'sum'. Also, use a block COMMENT to depict the name and description of the program, author of the program, and date."
Write a C program that reads a sequence of numbers and display a message 1. The numbers a re red from the standard input. 2. The first number is the length of the sequence (n) followed by n numbers. 3. If n is 0 or negative, the program displays the message "Error_1" followed 4. If the length is shorter than n, it displays "Error_2" followed by a new line 5. The program inspects the list and display one of the...
2. Write an Assembly program using Super Simple CPU Instruction set that takes input 3 numbers from the user and outputs 1 in the output box if the sum of the first two inputs is greater than the sum of the last two inputs; otherwise it outputs o in the output box. Example1, if user inputs the numbers 10, (2.0), 11, (3.0), and 1,(1,2) then the output should be 1 (since 2.0 + 3., is greater than 3.. +1,). Example...
6.2 - Write a program that reads numbers and adds them to a list if they aren't already contained in the list. When the list contains ten numbers, the program displays the contents and quits. Use Python 3 Please. Comments in code if you can
1. Write a program to add positive numbers. Ask the user to enter numbers greater than zero. If a 0, is entered stop requesting numbers and display the total. If a number is entered that is less than 0, display the message ‘Number must be greater than 0’, then ask for another number to be entered. Repeat until a number greater than 0 or 0 is entered. use math lab so I can copy the answers
Need help figuring this out Write a program that reads in a sequence of numbers (doubles) from standard input until 0 is read, and stores them in an array, This part is done using iteration (loop). You may assume that the maximum size of the array will not be more than 100. Your program computes the maximum number stored in the array, the count of negative numbers, and computes the sum of positive numbers, using recursion. You need to have...
Please write in assembly language 8086 windows32 Question 3: Write an assembly program that has a macro maximum that finds the larger of two numbers inputted by the user
this is for a c++ program Ask the users for numbers until the total of the numbers is greater than 30. Also, count how many numbers are even and how many are odd. Total is 0 Please enter an integer: 20 Total is 20 Please enter an integer: 7 Total is 27 Please enter an integer: 2 Total is 29 Please enter an integer: 1 Total is 30 Please enter an integer: 1 You had 2 even numbers and 3...
Write a program that accepts numbers entered by the user until the user enters a zero. The program then must display the largest value that is smaller than zero. This should be java program