What I need to see in the assembly code is cout<<\"The two dimension of the Appl
ID: 3528920 • Letter: W
Question
What I need to see in the assembly code is cout<<"The two dimension of the Apple iPhone 4S screen are 960 and 640 pixels " <<endl; cout<<960*640<<endl; cout<<"The two dimension of the Google Nexus 10 screen are 2650 and 1600 pixels"<<endl; cout<<2650*1600<<endl; Is this assembly language get the same result as the c++ above without comment to print the output. .data str1: .asciiz "The two dimension of the Apple iPhone 4S screen are 960 and 640 " str2: .asciiz "The two dimension of the Google Nexus 10 screen are 2650 and 1600 " newline: .asciiz " " .text main: li $v0,4 #system call code for print string la $a0,str1 #address of str1 syscall #print str1 #do the calculation add $t0,640 #t0=640 add $t1,960 #t1=960 mult $t2,$t0,$t1 #t2=640*960=6144400 #ptint the 640*960 li $v0,1 move $a0,$t2 #move the result of multiplecation into $a0 to print syscall #this is start the next calculation li $v0,4 #system call code for print string la $a0,str2 #address of str2 syscall #print str2 #do the calculation add $t0,1600 #t0=1600 add $t1,2650 #t1=2650 mult $t2,$t0,$t1 #t2=1600*2650=4240000 #ptint the 1600*2650=4240000 li $v0,1 move $a0,$t2 #move the result of multiplecation into $a0 to print syscallExplanation / Answer
yes both of them will get same result as pixe; defines at the boundary of screen for some output value
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.