Answer the given question with a proper explanation and step-by-step solution. This question is based on the EASY68K simulated processor. Assume the contents of all data and address registers are equal to zero before the start of the program. All numbers are in hexadecimal. Demonstrate how instructions of a program are executed by using the E114 Processor Instruction Set of the EASY68K simulator.   The figure above is an incomplete program to add up the first 6 data items ($1 to $6) stored at address label DATA and store the sum of the first 6 data items to address label SUM1. Finish the program to accomplish the task.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 10PE
icon
Related questions
Topic Video
Question

Answer the given question with a proper explanation and step-by-step solution.

This question is based on the EASY68K simulated processor. Assume the contents of all data and address registers are equal to zero before the start of the program. All numbers are in hexadecimal. Demonstrate how instructions of a program are executed by using the E114 Processor Instruction Set of the EASY68K simulator.

 

The figure above is an incomplete program to add up the first 6 data items ($1 to $6) stored at address label DATA and store the sum of the first 6 data items to address label SUM1. Finish the program to accomplish the task.

 

START
SUBR
DATA
SUM1
MUL8
SUM2
DIV4
ORG
BSR
STOP
ORG
DC.B
DC. B
DC.B
DC.B
DC.B
END
$1000
SUBR
# $2700
; Provide comments to explain the steps
$0
$0
$0
START
; Call subroutine
$3000
$1, $2,$3, $4, $5, $6, $7,$8,$9, $A, $B, $C
$0
Transcribed Image Text:START SUBR DATA SUM1 MUL8 SUM2 DIV4 ORG BSR STOP ORG DC.B DC. B DC.B DC.B DC.B END $1000 SUBR # $2700 ; Provide comments to explain the steps $0 $0 $0 START ; Call subroutine $3000 $1, $2,$3, $4, $5, $6, $7,$8,$9, $A, $B, $C $0
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT