Demonstrate the use of lmc assembly language

Assignment Help Basic Computer Science
Reference no: EM132874873

Introduction to Little Man Computer

Task 1 -Familarising yourself with LMC

This task is for you to practice and get acquaint with the LMC features, no need to submit anything.

2. LMC is now ready for you. The interface is simple and self-explanatory. Try clicking on HELP button to find more information about this CPU simulator help page.

3. There are 10 program examples come with this simulator which can be selected from SELECT dropdown list.

4. The Assembly Language Code section is where you write a program code on it. Once coding is done, click Submit button to submit the code to LMC. You can click RUN button to execute the program. A step by step execution (one instruction at a time) can be achieved by clicking on STEP button. RESET button is used to put the CPU back to its initial state, where the value of the Program Counter and that of the Accumulator will be reset to 0.

5. STOP is a toggle button. When a program is executing, pressing this button will pause the program execution, pressing a gain to continue executing the program.

6. Rather than writing program code directly on Assembly Language Code area, you can also use a text editor such as NotePad to write your program code on your computer. Use LOAD button to load your program code from your computer to LMC and run it.

7. OPTIONS contains a list of options that can be used to control the operation of LMC.

8. CPU is located between Assembly Language Code and RAM sections. This simple CPU contains a Program Counter (PC) to hold/point to the next memory address/location, an Instruction Register (IR) to hold an instruction op-code fetched from a memory address, an Accumulator to hold value during CPU operation.

9. Now, you may select an example code from SELECT button and try running the program. The operation speed can be adjusted by clicking on <<button (slower) or >> button (faster)

Task 2 - Writing a simple program

1. Read and understand the sample LMC program below. Take special consideration on the program structure. The following program demonstrates the use of LMC assembly language to add an input value to the constant value -1. Note that lines starting with "//" and characters to the right of program statements are considered comments, and are ignored by the LMC.

// A sample LMC assembly language
// to add a number to the value -1
INP// Input number to be added
ADDVALUE //Add value stored at address VALUE to
// input
OUT// Output result
HLT// Halt (program ends here)
VALUEDAT -001// Data value

2. Enter the program code above into the Assembly Language Code section, then Submit and run the program in ‘default normal' speed and then in ‘default slow' - using OPTIONS to select, assume number 10 was entered as an input value. Run the program again but using STEP button. Take a screenshot of each execution mode.

3. Observe and record the results, registers, and memory contents after the program execution has finished.

4. Which program execution mode do you prefer when you want to study the program operation in details for debugging purpose?
Task 3.

1. Draw side-by-side flow diagrams that show how the Little Man Computer executes a store instruction and the corresponding CPU fetch-execute cycle.

Reference no: EM132874873

Questions Cloud

How process differs from that of disaster behavioral health : How the process differs from that of disaster behavioral health with typical adult populations, note any significant factors you feel contribute to or hinder
Explain which job board is best fit to advertise position : Explain which job board is the best fit to advertise the position. Provide an explanation why you chose that board and the benefits it offers over the others.
Briefly explain why the owner investment : Briefly explain why the owner's investment and revenues increased owner's equity, while withdrawals and expenses decreased owner's equity
Introduce a new dress code policy : As a manager of a small office, you want to introduce a new dress code policy that allows for casual days. What steps would you take to validate why casual days
Demonstrate the use of lmc assembly language : Writing program code directly on Assembly Language Code area, you can also use a text editor such as NotePad to write your program code on your computer
Discuss experience navigating the three search engines : Why and discuss your experience navigating the three search engines. Please be thorough in your answer regarding your experience, noting specific examples.
Operations manager and warehouse manager : Draft a business memo to the operations manager and warehouse manager, How can your company apply operations management (OM)?
Prepare an income statement for March : Purchased supplies on account, $2,500. Prepare an income statement for March, a statement of owner's equity for March, and a balance sheet as of March 31
How worldview and the nursing theory will assist : Describe your personal worldview, including the religious, spiritual, and cultural elements that you think most influence your personal philosophy of practice

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd