Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following Assembly Language program has to be run on your Basic Computer that was studied in this course. Using the instruction list from Table

image text in transcribedimage text in transcribed

The following Assembly Language program has to be run on your Basic Computer that was studied in this course. Using the instruction list from Table 6 of the Annex, translate this program in its equivalent machine code by specifying the machine code of each instruction/operand, and its address in the memory. 1. Write your answer in only the first two columns of the following table (in hexadecimal). Memory Memory Memory Assembly Language program Address content before content after (hex) execution execution ORG 200 BSA UNK HEX 300 HEX 400 DEC -32 HLT UNK, HEXO LDA UNKT STA PTI ISZ UNK LDA UNK! STA PT2 ISZ UNK LDA UNK! STA CTR ISZ UNK LOP, LDA PTIT STA PT21 ISZ PTI ISZ PTZ ISZ CTR BUNLOP BUNUNK! PT1, PT2, CTR, 2. Alter the execution of the program, what is the content of the part of the memory PI operands are stored? Write down your answer in the third column of the table. Note you only need to fill in the rows corresponding to the memory locations where the operande are stored. 3. In just one or two sentences, what does the program do? The following Assembly Language program has to be run on your Basic Computer that was studied in this course. Using the instruction list from Table 6 of the Annex, translate this program in its equivalent machine code by specifying the machine code of each instruction/operand, and its address in the memory. 1. Write your answer in only the first two columns of the following table (in hexadecimal). Memory Memory Memory Assembly Language program Address content before content after (hex) execution execution ORG 200 BSA UNK HEX 300 HEX 400 DEC -32 HLT UNK, HEXO LDA UNKT STA PTI ISZ UNK LDA UNK! STA PT2 ISZ UNK LDA UNK! STA CTR ISZ UNK LOP, LDA PTIT STA PT21 ISZ PTI ISZ PTZ ISZ CTR BUNLOP BUNUNK! PT1, PT2, CTR, 2. Alter the execution of the program, what is the content of the part of the memory PI operands are stored? Write down your answer in the third column of the table. Note you only need to fill in the rows corresponding to the memory locations where the operande are stored. 3. In just one or two sentences, what does the program do

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions