Skip to content

AlanDoesCS/CPU-Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU-Sim

A Simplified Visualisation of a 16 bit CPU core with a custom instruction set

Instruction Set

  1. NOP No operation
  2. LDA <Address> Load address into accumulator
  3. LDI <Unsigned Byte> Load immediate into accumulator
  4. STA <Address> Store accumulator into address
  5. ADD <Address> Add accumulator
  6. SUB <Address> Subtract accumulator
  7. MUL <Address> Multiply accumulator
  8. DIV <Address> Divide accumulator
  9. JMP <Address> Jump
  10. JGZ <Address> Jump if greater than zero
  11. JLZ <Address> Jump if less than zero
  12. JEZ <Address> Jump if equal to zero
  13. JNZ <Address> Jump if not equal to zero
  14. INP Input to accumulator
  15. OUT Output to accumulator
  16. HLT Halt

About

A Simplified Visualisation of a 16 bit CPU core

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages