Assembly Programming in MIPS
Write a program in MIPS assembler that performs the following computations:
Requirements and restrictions
MEMORY ADDRESS MNEMONICS COMMENT
2000 LDA 2050 A<-[2050]
2003 MOV H, A H<-A
2004 LDA 2051 A<-[2051]
2007 DIV B B <-A/H
2008 QUT C C <- A%H
.data #Section that declares variables for program
firstPromptString: .asciiz "first integer"
SecondromptString: .asciiz "second integer"
quotientromptString: .asciiz "quotient integer"
remainderromptString: .asciiz "remainder integer"
firstPromptString : A
SecondromptString : H
quotientromptString: B
remainderromptString: C
Get Answers For Free
Most questions answered within 1 hours.