Skip to content

BenG49/cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpu

Digital logic simulation of Ben Eater's 8-bit CPU.

Using https://github.com/hneemann/Digital logic simulator and https://github.com/hlorenzi/customasm assembler.

Modifications

  • 4 bit -> 8 bit addresses
  • 8 bit opcodes (instructions with arguments spread over 2 bytes)
  • Add a stack
    • Add a stack pointer up/down counter (starts at 0xFF)
    • Add PHA/PLA instructions
    • Add CALL instruction (clobbers A register)
    • Add RET instruction (jumps to address at stack pointer in memory)
  • Extend instruction set
    • Add imm for LDA, ADD, SUB

picture of circuit

About

Circuit simulator of Ben Eater's 8 bit CPU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published