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

  Compensating balance requirement

Friedman Roses, Inc. needs $80,000 in funds for expansion. With a compensating balance requirement of 20%, how much will the firm need to borrow?

  Benefits and challenges of mobile technology

Organizations hope to increase productivity and spur growth when they adopt mobile technology. Unfortunately, integrating new technology does not always go as smoothly as some businesses would like. With a wide variety of users and ever-evolving c..

  Urban area of dibrugarh in assam

Aakanksha, Nikita and Parishma are the owners of a handicraft unit in the urban area of Dibrugarh in Assam, which is involved in the manufacturing and marketing of Sital Pati, traditional mats and Jappi (the traditional headgear).

  Network interface cards and media access control

Network Interface Cards, Media Access Control (MAC) Address Format, Unicast and Broadcast Traffic, Address Resolution Protocol (ARP), and ARP Cache Utility

  Policy-making is driven by need to solve societal problems

"Policy-making is driven by the need to solve societal problems and should result in interventions to solve these societal problems." (Janssen, 2015)

  What is the profit-maximizing point

What is the profit-maximizing point for a perfectly competitive firm?

  Review and compare a number of devices and operating systems

Device Hardware and OS Research In this assignment you will review and compare a number of devices and operating systems. This task will require you to undertake research.

  Purpose of producing a maintenance report

What is the purpose of producing a maintenance report and why would you give the client a copy?

  Prevention and response strategies

Explain how negotiations with accreditors on compliance should be dealt with. how to obtain feedback on effectiveness of security policies from stakeholders

  Experienced in organizational setting

Write a paper on a conflict that he or she experienced in an organizational setting. Background and history that led to the conflict.

  Inevitable result of current social and economic policies

Deforestation is an inevitable result of current social and economic policies carried out in the name of development.

  Mobile users and data security

The topic "Mobile Users and Data Security " and three quotes set off by quotation marks and in-line citations. Write in your own words

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