Question: I need some help coming up with the machine code to use in the Little Man Computer (LMC). I think this is basic, but Im

I need some help coming up with the machine code to use in the Little Man Computer (LMC). I think this is basic, but Im still confused.

Requirements:

* Every line has a comment about what is happening

* You must use mnemonics for instructions

* Line labels must be used for branch instructions

The LMC has an input and output instructions. This allows for numerical in/out of numbers 000 - 999.

Convert a base 10 number to Binary

Enter a number 000 to 511. If greater that 511 exit the program.

Output binary value using 3 output statements. First output is the Most Significant octet, second is middle octet and third is Less Significant Octet.

program should look something like:

Input: 255

Output: 011

Output: 111

Output: 111

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!