Skip to content

icenfame/lmc-emu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Little Man Computer emulator

Available instructions:

  • IN - Input from user
  • OUT - Output to user
  • ADD - Add memory content to accumulator
  • SUB - Subtract memory content from accumulator
  • LDA - Load to accumulator content from memory
  • STA - Store content from accumulator to memory
  • JMP - Unconditional jump to given address
  • JEZ - Jump if accumulator equals to zero
  • JGZ - Jump if accumulator greater than zero
  • HLT - Halt program

Example (A + B):

; A + B
IN
STA 0x0A

IN
ADD 0x0A

OUT
HLT

About

Little Man Computer emulator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published