Menu

(Solved) : Complete Attached Asm Code Upload Completed Code Screen Capture Output Copy Program Descri Q44146857 . . .

Complete the attached .asm code. Upload your completed code anda screen capture of your output.

Below is a copy of the program description. Make sure todocument almost every line of code as you go.

# Program: mlSyntaxVariablesIO.asm# Author: **********# Date: mm/dd/yy# Purpose: Practice printing data types#—————————————————————–# Create assembler for the following C program:# #include <iostream># #include <string># using namespace std;## void main()# {# string myname = “Your Name”;# int age = 23;# float gpa = 3.5;# double pi = 3.1415926535897;# char gender = ‘F’;# bool hasProgrammed = 1; //true## cout << “Name:tt” << myname << endl;# cout << “Age:tt” << age << endl;# cout << “GPA:tt” << gpa << endl;# cout << “PI:tt” << pi << endl;# cout << “Gender:tt” << gender << endl;# cout << “Has Programmed:t” << hasProgrammed << endl;# }# OUTPUT:# Name: My Name# Age: 23# GPA: 3.5# PI: 3.1415926535897# Gender: F# Has Programmed: 1

^^^^^^^^^^^ this is C++ , now it needs to be converted toprogram MARS vvvvvvvvvvvvvvvvv

.data .eqv SYS_PRINT_WORD 1 #word, byte, character .eqv SYS_PRINT_FLOAT 2 #float .eqv SYS_PRINT_DOUBLE 3 #double .eqv SYS_PRINT_TEXT 4 #text (zero terminated) .eqv SYS_EXIT 10 #terminate.text.globl mainmain:# PRINT myname# PRINT age# PRINT gpa# PRINT pi# PRINT gender# PRINT hasProgrammed#————————# terminate program. li $v0, SYS_EXIT # call code for terminate syscall # system call#.end main

Expert Answer


Answer to Complete the attached .asm code. Upload your completed code and a screen capture of your output. Below is a copy of the …

OR