Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Show me complete coding and also screenshot of output. Pls help me with this, thank you! Program 1 (50%) Write a machine language program to

image text in transcribed

image text in transcribed

Show me complete coding and also screenshot of output. Pls help me with this, thank you!

Program 1 (50%) Write a machine language program to output your name on the output device. The name you output must be at least three characters in length. The solution should be submitted as a text file showing the program listing with associated memory addresses and comments in addition to a screenshot showing the completed execution in the Pep/9 simulator (see the samples below). Program 2 (50%) Write a machine language program to add the three numbers 2, -3, and 6 and output the sum on the Pep/9 output device. Store the 2, -3 and 6 in hexadecimal in appropriate memory locations. Do not use the subtract, negate, or invert instructions (only addition instructions). The solution should be submitted as a text file showing the program listing with associated memory addresses and comments in addition to a screenshot showing the completed execution in the Pep/9 simulator (see the samples below). Sample Solution The following samples pertain to the self-modifying example covered in chapter 4 and do not represent the code required for this lab. They are included to show what is to be submitted: A text file showing the program listing with associated addresses and comments: Address 0000 0003 0006 0009 000C 000F Machine Language (hex) D10019 ; Load byte accumulator F10009;Store byte accumulator C10013 ;AC-first number 610015 ; Add the two numbers 910017 ;Convert sum to character F1FC16 ; Output the character 00 ; Stop 0005 ; Decimal 5 0003 Decimal 3 0030 ; Mask for ASCII chan ;Byte to modify instruction 0012 0013 0015 0017 0019

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 Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions