Question
Asked Nov 17, 2019
198 views

a. Write the assembly language equivalent of the following MARIE machine language instructions:
a) 0000010111000000
b) 0001101110010010
c) 1100100101101011

b. Write the following code segment in MARIE assembly language:
X = 1;
while X < 10 do
X = X + 1;
endwhile;

check_circle

Expert Answer

Assembly language equivalent to marie machine language

  1. The equivalent assembly instruction for given MARIE address is “JnS 5C0” where the assembly instruction is fetch from “MARIE’s entire instruction set”. Here, the hexadecimal address 0101 1100 0000 is converted into decimal as “5C0” and the opcode can be converted into instruction “JnS”. Hence the equivalent assembly instruction is “JnS 5C0”.
  2. The equivalent assembly instruction for given MARIE address is “Load B92” where the assembly instruction is fetch from “MARIE’s entire instruction set”. Here, the hexadecimal address 1011 1001 0010 is converted into hexadecimal equivalent as “B92” and the opcode can be converted into instruction “Load X”. Hence the equivalent assembly instruction is “Load B92”.
  3. The equivalent assembly instruction for given MARIE address is “JumpI 96B” where the assembly instruction is fetch from “MARIE’s entire instruction set”. Here, the hexadecimal address 1001 0110 1011 is ...

Want to see the full answer?

See Solution

Check out a sample Q&A here.

Want to see this answer and more?

Solutions are written by subject experts who are available 24/7. Questions are typically answered within 1 hour.*

See Solution
*Response times may vary by subject and question.
Tagged in

Engineering

Computer Science

Related Computer Science Q&A

Find answers to questions asked by student like you

Show more Q&A add
question_answer

Q: What are the components of a function and how do I use it in a program?

A: In programming language there are two types of function one is build in type and the other is user-d...

question_answer

Q: Evaluate cloud computing in relation to each of these four (4) criteria Dependable Manageable Adapta...

A: DescriptionEvaluating cloud computing in relation to the following four criteria’s:DependableDependa...

question_answer

Q: Find those job categories whose maximum salary among the people hired after 1980 is more than 2500 F...

A: 1)To find those job categories whose maximum salary among the people hired after 1980 is more than 2...

question_answer

Q: Some system analysts maintain that source doucments are unnecessary. They say that all input cab be ...

A: “Yes”, any user can agree with the given statement.

question_answer

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: A Java program for the given scenario is provided below,File name: “ECommerceApp.java”//Import requi...

question_answer

Q: Given the follwing business rules, create an ERD.  The ERD must include all primary keys, foreign ke...

A: The entities, primary keys and foreign keys and attributes of ERD are:

question_answer

Q: First, launch NetBeans and close any previous projects that may be open (at the top menu go to File ...

A: Program Instructions:Declare the initial balance to $5000.Use do-while loop to repeatedly show the m...

question_answer

Q: How do I start creating a program to shuffle and deal a deck of cards?  The program should consist o...

A: Program:Filename: Game.java package deckOfCards;import java.util.Scanner;public class Game {public s...

question_answer

Q: What are the four components of php application and explain why these are so important?

A: Four components of a PHP application are the following:DatabaseHTMLSessions/Authentication/ CookiesU...