Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For Problems 1 & 2, reference the following piece of assembly code: lw 0 1 pos1 lw 0 2 neg1 lw 0 3 count nor

For Problems 1 & 2, reference the following piece of assembly code: lw 0 1 pos1 lw 0 2 neg1 lw 0 3 count nor 1 1 4 loop beq 0 3 done //beq0 nor 3 3 5 nor 4 5 5 beq 0 5 even //beq1 add 6 1 6 beq 0 0 else //beq2 even add 7 1 7 else add 3 2 3 beq 0 0 loop //beq3 done halt count .fill 5 pos1 .fill 1 neg1 .fill -1 Problem 1: Out of Control (20 points) a) Write the sequence of branch decisions for each beq instruction. Let taken be denoted as T and not taken as N. For example, a beq that is taken twice and then not taken once would have a sequence TTN. The global sequence will be the for all branch instructions put together. For example, if beq0 executes as N, then beq1 as T, then beq0 as N, we would have a sequence NTN. [5]

image text in transcribed

image text in transcribed

image text in transcribed

For Problems 1 & 2, reference the following piece of assembly code lW nor loop beq posl negl count 4 done 1 //beqe nor3 nor 4 beq //beq1 even add6 beq e even add 7 else add 3 beq e else //beq2 1 loop //beq3 done halt count .fill 5 pos1 .fill 1 neg1 .fill -1 For Problems 1 & 2, reference the following piece of assembly code lW nor loop beq posl negl count 4 done 1 //beqe nor3 nor 4 beq //beq1 even add6 beq e even add 7 else add 3 beq e else //beq2 1 loop //beq3 done halt count .fill 5 pos1 .fill 1 neg1 .fill -1

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_2

Step: 3

blur-text-image_3

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

Students also viewed these Databases questions

Question

DISCUSS the key elements of Canada's labour laws.

Answered: 1 week ago