Skip to content

understanding computer architecture ? Let's simulate one ... Introducing the LC3

Notifications You must be signed in to change notification settings

Ayg0/LC3Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LC-3-Emulator:

understanding computer architecture ? Let's emulate one

Resources:

Usage:

Build:

  • Simply have any C compiler (makefile has gcc), and use
    make
  • Running in default Mode:
    ./lc3Sim examples/Image
  • Running in Debug Mode:
    ./lc3Sim -d examples/Image ;; you can step by pressing any key

Running Programs ? How ?:

  • In the example folder you'll find rogue and 2048 games I downloaded from:

LC3Vm-HowTo

  • Also, you can find the 'Image' that I wrote and compiled inside:

lc3Emulator

  • I would encourage you to write your own programs and test maybe you can find some bugs ...

Looks cool How can I make one ?:

  • The pdf inside the repo has all the specific details you need to know to make this, test with the emulator and if you get stuck you can go for the tutorial (I don't advise you to go full into tutorials without testing your limits).

Progress:

Implemented => X
Unused => //
[X] op_BR
[X] op_ADD
[X] op_LD
[X] op_ST
[X] op_JSR
[X] op_AND
[X] op_LDR
[X] op_STR
[//] op_RTI
[X] op_NOT
[X] op_LDI
[X] op_STI
[X] op_JMP
[//] op_RES
[X] op_LEA
[X] op_TRAP

About

understanding computer architecture ? Let's simulate one ... Introducing the LC3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published