0% found this document useful (0 votes)
113 views2 pages

Little Man Student Handout

This document provides information for students on the Little Man Computer simulation software. It includes instructions for accessing an online version of the software and its documentation. The software uses the same instruction set as described in the assigned reading, but with different opcode numbers. The instruction set is listed, including codes for loading, storing, adding, subtracting, input, output, stopping, and conditional skipping. The document also describes the virtual hardware of the Little Man Computer, including its input tray, output tray, calculator, memory, and program counter. It notes some limitations of the software version.

Uploaded by

AitorGad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views2 pages

Little Man Student Handout

This document provides information for students on the Little Man Computer simulation software. It includes instructions for accessing an online version of the software and its documentation. The software uses the same instruction set as described in the assigned reading, but with different opcode numbers. The instruction set is listed, including codes for loading, storing, adding, subtracting, input, output, stopping, and conditional skipping. The document also describes the virtual hardware of the Little Man Computer, including its input tray, output tray, calculator, memory, and program counter. It notes some limitations of the software version.

Uploaded by

AitorGad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Student Information for the Little Man Computer

19-101
Spring 2001
Reading
Stewart Madnick . Understanding the Computer (Little Man Computer) on
reserve in E&S Library in the 19-101 course packets. (Hopefully this will also be
in the online reserves by the time you receive handout.)

Additional Readings and Software Demo


The software version we will be using in class, along with readings and other
information can be found at
http://www.herts.ac.uk/lis/ltdu/projects/mm5/
You can download a PC version of the program, or run it from their site if you
have Macromedia Shockwave installed. (There is a Mac version of the program,
but even they recommend against running it. It would not run on the Mac I tried it
on.)

Software Little Man Instruction Set.


The software Little Man has the same instruction set as the one described in the
Madnick article, but the opcode (operational code) numbers assigned to the
instructions are different. You should use the software Little Man codes in our
examples and homework problems:
OPCODE

OPERATION

1XX

Load number from memory location XX into the ALU


(calculator.)

2XX

Store the ALU number into memory location XX.

3XX

Add the number in memory location XX to the ALU

4XX

Subtract the number in memory location XX from the ALU

500

Get input from the input try and load it in the ALU

600

Make the number in the ALU available at the output tray.

700

STOP!

800

Skip the next instruction if the number in the ALU is negative.

801

Skip the next instruction if the number in the ALU is zero.

802

Skip the next instruction if the number in the ALU is positive.

(Virtual) Hardware for the Little Man Computer.


The Little Man Computer has 5 components:
INPUT TRAY:

Where you give numerical input to the Little Man.

OUTPUT TRAY

Where the Little Man leaves a number for you.

CALCULATOR

The Arithmetic Logic Unit (ALU) where numbers are


accessed, added, and subtracted. All numbers must
go through the ALU on their way to any other location.

MEMORY

Where the program instructions and data are stored.

PROGRAM
COUNTER

Keeps track of the location where the Little


Man must look for the next instruction. The Little Man
ALWAYS STARTS by getting the number in the
counter, then incrementing the counter.

So, the Little Man starts the next instruction by going to the program counter,
noting which memory location it is pointing to, incrementing the counter, then
going to look in the memory location he noted prior to incrementing the counter.

Other Notes.
Our Software Little Man can not accept negative number inputs, although
calculator operations can produce negative numbers, which are properly
handled.
Also, as in the Madnick article, input numbers, and any operations performed on
them, can not exceed three digits.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy