Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) a) What is the symbol table (labels and their addresses) for the following MARIE program? 004,6 b) Translate the MARIE assembly language program into

image text in transcribed

1) a) What is the symbol table (labels and their addresses) for the following MARIE program? 004,6 b) Translate the MARIE assembly language program into machine language (hex.). Address MARIE Assembly Language Machine Language (hex) 00036 LOAD ONE 001,6 STORE X 00226 FOR, LOAD X 00326 SUBT TEN SKIPCOND 800 005.6 JUMP FOR_BODY 00625 JUMP END_FOR 00716 FOR_BODY, LOAD X 00816 OUTPUT 0096 ADD ONE 00A STORE X 00B26 JUMP FOR 00C6 END_FOR, HALT OOD x DECO O0E16 ONE, DEC 1 007:6 DEC 10 c) Write the High-Level Language code for the above assembly language program. TEN, 4) Write a complete MARIE assembly language program to interactively sum values until either a negative number or a number> 100 is entered. sum = 0 input value while value >= 0 and value 100 is entered. sum = 0 input value while value >= 0 and value

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Suppose the total-cost function for a firm is given by

Answered: 1 week ago