Access Millions of academic & study documents

Am getting 9 error when running this opcode through terminal don t k

Content type
User Generated
Showing Page:
1/2
Am getting 9 error when running this opcode through
terminal don t know the problem ?
.ORIG X3000
LEA R0,PROMPT1
LEA R1,PROMPT2
MUL R2,R0,R1
STR R2
PUTS PROMPT2
PUTS R2
HALT
. FILL xFFF6
PROMPT1 .STRINGZ ENTER LENGTH OF THE
RECTANGLE:
PROMPT2 .STRINGZ ENTER WIDTH OF THE
RECTANGLE:
PROMPT1 .STRINGZ AREA OF THE RECTANGLE:
.BLKW #25
.END
Solution
MUL R2,R0,R1 is error declaration.
R0 conflict storage i.e storing of rectangle length and area
of rectangle

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Am getting 9 error when running this opcode through terminal don t know the problem ? .ORIG X3000 LEA R0,PROMPT1 LEA R1,PROMPT2 MUL R2,R0,R1 STR R2 PUTS PROMPT2 PUTS R2 HALT . FILL xFFF6 PROMPT1 .STRINGZ “ENTER LENGTH OF THE RECTANGLE:” PROMPT2 .STRINGZ “ENTER WIDTH OF THE RECTANGLE:” PROMPT1 .STRINGZ “AREA OF THE RECTANGLE:” .BLKW #25 .END Solution MUL R2,R0,R1 is error declaration. R0 conflict storage i.e storing of rectangle length and area of rectangle Name: Description: ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4