The repository shows the compiler (simulator) of the Little Man Computer, which also contains some programs in the LMC programming language for implementing different functions.

Overview

Little Man Computer

The repository shows the compiler (simulator) of the Little Man Computer, which also contains some programs in the LMC programming language for implementing different functions.

About Little Man Computer

The Little Man Computer (LMC) is an instructional model of a computer, created by Dr. Stuart Madnick in 1965. The LMC is generally used to teach students because it models a simple von Neumann architecture computer—which has all the basic features of a modern computer. It can be programmed in machine code (albeit in decimal rather than binary) or assembly code.

Please visit the Wikipedia of Little Man Computer for more information.

How to run the LMC program

  1. Open the HTML page via your browser
    1. The upper left-hand part is the input box for inputting the codes
    2. The upper right-hand part is the components of the Little Man Computer
    3. The lower part is the result board for showing the result of your program
  2. Copy the sample programs or input your code in the input box
  3. Click the Compile & mount button to compile the LMC code in the input box
  4. Click the Run! button to run the code

    You can see how the program runs in the components

  5. Get the calculation result in the result board
You might also like...

Write "hello world" in your native language, code "hello world" in your favorite programming language!

Hello World, All languages! 🌎 📌 Write "hello world" in your native language, code "hello world" in your favorite language! #hacktoberfest2022 How to

Dec 13, 2022

Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

May 18, 2022

Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

May 3, 2022

Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

Jan 3, 2023

Encode WEB-Dev is a open source project which contains different projects of Html, CSS, Javascript and MERN Stack etc.

HACKTOBERFEST 2022 Encode WEB-Dev is an open source project which contains different projects of Html, CSS, Javascript and MERN Stack etc. which makes

Oct 31, 2022

PAC-MAN Leaderboard includes the Leaderboard API. You can add your name and score, and see other player's scores.

PAC-MAN Leaderboard includes the Leaderboard API. You can add your name and score, and see other player's scores.

Oct 26, 2022

Rollback netcode for Mega Man Battle Network!

Tango Tango is rollback netplay for Mega Man Battle Network. Design Tango is composed of two parts: the launcher and the core. The launcher performs h

Dec 31, 2022

A type programming language which compiles to and interops with type-level TypeScript

Prakaar Prakaar (hindi for "type") is a type programming language which compiles to and interops with type-level TypeScript. Prakaar itself is also a

Sep 21, 2022
Comments
  • Line numbers wrong in compile view for data fields

    Line numbers wrong in compile view for data fields

    In compile view the line numbers are calculated automatically and start with a 1. That leads to a wrong code view as the first line should have the number 0 (LMC counts from 00 to 99). Therefore references in the compiled code view lead at least to wrong data boxes. See the following example where the jump labels are correct but the references to the variable data box are not:

    image

    I suggest using an offset of 0 for the line number counting and maybe even use two digits in order to follow LMCs internal opcode based logic.

    opened by leitmedium 1
  • After corrected line numbers, internal numbering seems broken

    After corrected line numbers, internal numbering seems broken

    Thanks for the fix of #1 - now there seems to be a regression that leads to internally wrong addresses line numbers. The following code worked before #1 had been fixed:

    START INP
          BRZ END
          ADD X
          STA X
          OUT
          BRP START
    END   HLT
    X     DAT 0
    

    Now it ends in an endless loop. Apparently because the jump for "BRP START" jumps directly to "BRZ END" and not to the START line. My strong assumption is that this is still a side effect of the numbering system. While on the right hand side we see that the programm counter starts with "00" (which is correct for LMC) on the left hand code is being rendered with numbers being based on a start with 1. I still think the best would be to completely switch over to start counting at 0 everywhere.

    (this reminds me of the computer joke: »There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.«)

    Thanks for the great work!

    opened by leitmedium 0
Owner
Cow Cheng
Use our hands to change the world.
Cow Cheng
TV Shows Web App - A web application based on an external API which contains information about TV shows

TV Shows Web App - A web application based on an external API which contains information about TV shows. th web app let you like the shows that you like the most and comment what you think about them making use of an involvement API to save this interaction information.

Williams Colmenares 14 Dec 17, 2022
TV Shows Web App - A web application based on an external API which contains information about TV shows

TV Shows Web App - A web application based on an external API which contains information about TV shows. th web app let you like the shows that you like the most and comment what you think about them making use of an involvement API to save this interaction information.

Williams Colmenares 14 Dec 17, 2022
JIT Compiler is a open source online code compiler. You can run more than 40+ most popular programming languages in your browser just-in-time using jitcompiler.

JIT Compiler is a open source online code compiler. You can run more than 40+ most popular programming languages in your browser just-in-time using jitcompiler.

Rajkumar Dusad 36 Jan 5, 2023
When a person that doesn't know how to create a programming language tries to create a programming language

Kochanowski Online Spróbuj Kochanowskiego bez konfiguracji projektu! https://mmusielik.xyz/projects/kochanowski Instalacja Stwórz nowy projekt przez n

Maciej Musielik 18 Dec 4, 2022
This repository contains different infrastructure components that are used in different projects here at NaN Labs.

Infrastructure Reference Changelog | Contributing This repository contains different infrastructure components that are used in different projects her

NaN Labs 10 Dec 15, 2022
In this project we made a Tv shows webpage where you can like or comment the different shows.

JS Capstone Project In this project we made a Tv shows webpage where you can like or comment the differents shows. Built With HTML CSS JavaScript Lint

Lucas Bonnefon 4 Mar 16, 2022
This Repo Contains projects that demonstrate some concepts / algorithms / implemetation in some form of digital visualisation

Hacktoberfest 2022 OPEN FIRST Pull Request - GET STARTED WITH OPENSOURCE AND WIN SOME AWWSOME SWAGS ?? Contributors of Hacktoberfest 2022 This project

null 5 Nov 7, 2022
Contribute some nodejs programs here ;)

Nodejs Programs Showcase Table Of Contents Prerequisites Contributing Prerequisites In God we trust. All others must bring data. Need to be courageous

koderDev 3 Oct 9, 2022
This project contains a leader board for a game which contains players name and list and store them on API build with HTML, CSS, JS and API

Leaderboard This App is a Game Leaderboard app Which is created by JavaScript and the big picture of this application is using API. Build With ??‍?? .

Sahar Saba Amiri 5 Dec 15, 2022