Skip to content

dennisylyung/little_man_computer_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Little Man Computer in Python

Little man computer implemented in Python as a study of how it works.

Getting started

Requirements

  • Python 3.9 (not tested on earlier versions)

Run it

  1. Put your assembly code in assembly_program.s

  2. Run demo.py

    For the best experience, run it with debugger to see how the program counter, registers and memory work while the program runs.

Features

The implementation supports:

  • The following instructions
    • ADD
    • SUB
    • STA
    • LDA
    • BRA
    • BRZ
    • BRP
    • INP
    • OUT
    • HLT
    • DAT
  • Labels
  • Comments

About

Little man computer implemented in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages