Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Machine Language Programming [problems 7.27 & 7.28) and the SML system, the first two digits refer to the Op.code and the last two digits to

image text in transcribed
Machine Language Programming [problems 7.27 & 7.28) and the SML system, the first two digits refer to the Op.code and the last two digits to the operand memory location. (From page 327/328) The Op.codes are: READ 10; WRITE 11;LOAD 20; STORE 21; ADD 30; SUBTRACT 31; DIVIDE 32; MULTIPLY 33; BRANCH 40; BRANCHNEG 41; BRANCHZERO 42; HALT 43; In the following functional machine language program, starting at memory 00. .a) To which location the program loops at the execution of the Halt instruction? .a) Ans _______ .b) After the program is run starting from location 00, entered A and B values are 43 and 12. What are the final contents of the Accumulator, Instruction counter and instruction register? .b)Accumulator ______ Instruction counter ______ Instruction register________ .c) After the program is run, what is output? .c) Output________ .d) The program is rerun with A and B values as 39 and 77. What is output? .d)Output_________ .e) What is accomplished in the program? (Output sum of A and B; Output difference of A and B; Output smaller of A and B; None of these (which))? .e) Ans____________

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

How should we define risk?

Answered: 1 week ago