Section 3: Addition You now complete the subroutine "MYADD“. It is a subroutine to add the values from R2 and R3 (R2 + R3). The result is saved at R3. You can check Lecture 5 and 6 for more information. For example (data from 'data2.asm'):- 009+001=010 004+004=008e 008+002=010e 007+003-010 006+005=011e 005+004=009 004+003-007 003+002=005e 001+000=001e 009+000=009 001+001=002 Section 4: Subtraction ( You now complete the subroutine "MYSUB“. It is a subroutine to subtract the value of R3 from R2 (R2 - R3). The result is saved at R3. You can check Lecture 5 and 6 for more information. For example (data from 'data3.asm'): 009-001=008- 004-004=000 008-002=006 007-003=004- 006-005=001 005-004=001- 004-003=001- 003-002=001 001-000=001e 009-000=009 001-001=000E

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

data2.asm

       .ORIG       x3500
HELLO    .STRINGZ    "+9144827365544332109011\n"

 

data3.asm

       .ORIG       x3500
HELLO    .STRINGZ    "-9144827365544332109011

You now start revising the program of the sample file (Q0.asm) so the output will display the result of AND
operations of every two input values (after the '&' character) from the "data0.asm". The first character of the
data file is used to identify which the operation is going to be executed. You can save the program as the file
Q1.asm. You are going to revise the highlighted area of the program to finish the whole assignment. The output
of executing Q0 with data file data0 is shown below.
009&009=009<
009&008=008-
008&007=000
007&006=006-
006&005=004-
005&004=004
004&003=000
003&002=002«
000&001=000
009&000=000<
001&001=0014
WARNING: We will use the JAVA simulator for marking. In particular, you should make sure that your answer
will produce ONLY the exact output expected. The markers simply makes an exact comparison with the
expected output. If you have any debug printouts or other code which produces some unexpected output, the
markers will give you
If your filesa pannot he compiled successfully or they cannot be executed
after compilation, the markers will also give you
Transcribed Image Text:You now start revising the program of the sample file (Q0.asm) so the output will display the result of AND operations of every two input values (after the '&' character) from the "data0.asm". The first character of the data file is used to identify which the operation is going to be executed. You can save the program as the file Q1.asm. You are going to revise the highlighted area of the program to finish the whole assignment. The output of executing Q0 with data file data0 is shown below. 009&009=009< 009&008=008- 008&007=000 007&006=006- 006&005=004- 005&004=004 004&003=000 003&002=002« 000&001=000 009&000=000< 001&001=0014 WARNING: We will use the JAVA simulator for marking. In particular, you should make sure that your answer will produce ONLY the exact output expected. The markers simply makes an exact comparison with the expected output. If you have any debug printouts or other code which produces some unexpected output, the markers will give you If your filesa pannot he compiled successfully or they cannot be executed after compilation, the markers will also give you
Section 3: Addition
You now complete the subroutine “MYADD“. It is a subroutine to add the values from R2 and R3 (R2 + R3).
The result is saved at R3. You can check Lecture 5 and 6 for more information.
For example (data from 'data2.asm'):-
009+001=010
004+004=008
008+002=010
007+003-010
006+005=011e
005+004=009
004+003=007
003+002=005
001+000=0014
009+000=009
001+001=002-
Section 4: Subtraction (
You now complete the subroutine "MYSUB“. It is a subroutine to subtract the value of R3 from R2 (R2 - R3).
The result is saved at R3. You can check Lecture 5 and 6 for more information.
For example (data from 'data3.asm'):
009-001=008e
004-004=000
008-002=006e
007-003=004
006-005=001e
005-004-001e
004-003=0014
003-002=0014
001-000=001e
009-000=009
001-001=000
Transcribed Image Text:Section 3: Addition You now complete the subroutine “MYADD“. It is a subroutine to add the values from R2 and R3 (R2 + R3). The result is saved at R3. You can check Lecture 5 and 6 for more information. For example (data from 'data2.asm'):- 009+001=010 004+004=008 008+002=010 007+003-010 006+005=011e 005+004=009 004+003=007 003+002=005 001+000=0014 009+000=009 001+001=002- Section 4: Subtraction ( You now complete the subroutine "MYSUB“. It is a subroutine to subtract the value of R3 from R2 (R2 - R3). The result is saved at R3. You can check Lecture 5 and 6 for more information. For example (data from 'data3.asm'): 009-001=008e 004-004=000 008-002=006e 007-003=004 006-005=001e 005-004-001e 004-003=0014 003-002=0014 001-000=001e 009-000=009 001-001=000
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY