Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Little Man Computer

No description
by

John Grey

on 19 July 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Little Man Computer

Little (Man) Computer
Machine Code
Structure of a CPU
http://prezi.com/l0sbe2s8ug2r/little-man-computer/
000 End
1nn Add
2nn Subtract
3nn Store
5nn Load
6nn Branch
7nn Branch if zero
8nn Branch if Zero or pos
901 Input
902 Output
LMC Instructions
142 50 139 185 5 169 51 136 166 238 75 207 210 233 201 157 30 130 111 173 122 243 186 173 132 20 132 62 123 101 231 176 148 185 59 72 222 176 50 8 252 211 75 250 217 197 73 151 57 108 236 110 175 94 188 178 24 110 87 53 218 108 66 149 64 163 245 61 193 227 202 166 70 198 3 243 203 186 66 106 223 125 1 187 214 26 47 154 216 16 251 56 149 30 36 221 53 223 127 139

INP
LOOP SUB ONE
OUT
BRZ QUIT
BRA LOOP
QUIT HLT
ONE DAT 1

901
310
901
110
902
000

add two numbers:

INP
STA 10
INP
ADD 10
OUT
HLT

or:
or:
STA temp
INP
ADD temp
OUT
HLT
temp dat
Machine code, CPU, Memory, Registers, Fetch-execute cycle, Assembly code, Translation
Links
Original LMC
http://www.yorku.ca/sychen/research/LMC/

on Wikipedia
http://en.wikipedia.org/wiki/Little_man_computer

Python LPC
http://red2.sunderland.ac.uk/ske/lpc.html

Old OCR Controlled Assessment
https://slp.somerset.gov.uk/Blogs/SecondaryICT/TeacherResource/Mess/OCR%20Computing%20INSET%20Materials/10.%20A452_Material_1.pdf

Mark Clarkson's pages
http://voyager.egglescliffe.org.uk/mwc/mukoku/course/view.php?id=16

...
What does this do?
Write a progam to input two numbers and subtract one from the other.

Write a progarm that lets you input a number, doubles it and outputs the result

... to repeatedly input numbers until the user enters zero, and then print out the total of all the numbers

... to input two numbers and multiply them.

... to output the fibonacci series up to 100
Could you ...
Hex Editor
http://mh-nexus.de/en/hxd/
Little Person Computer
http://red2.sunderland.ac.uk/python/lpc.py
Full transcript