Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1: Using a Disassembly window, write out the seven machine codes (32-bit instruction) for program 2. AREA Prog2, coDE, READONLY ENTRY MOV MOV r6,

image text in transcribed

Question 1:

Using a Disassembly window, write out the seven machine codes (32-bit instruction) for program 2.

AREA Prog2, coDE, READONLY ENTRY MOV MOV r6, #10 r7 , #1 r6 , #0 : load n into re ; if n=0, at least n!=1 loop CMP MULGTr7, r6, r7 SUBGT r6, r6 , #1 ; decrement n BGT loop ; do another mul if counter-0 stop B stop stop program END AREA Prog2, coDE, READONLY ENTRY MOV MOV r6, #10 r7 , #1 r6 , #0 : load n into re ; if n=0, at least n!=1 loop CMP MULGTr7, r6, r7 SUBGT r6, r6 , #1 ; decrement n BGT loop ; do another mul if counter-0 stop B stop stop program END

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 Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions