/y4004

intel 4004 emulator & assembler

Primary LanguageDGNU General Public License v3.0GPL-3.0

y4004

compile

dub build

usage

run with --help to see usage

implemented instructions

  • NOP
  • JCN
  • FIM
  • SRC
  • FIN
  • JIN
  • JUN
  • JMS
  • INC
  • ISZ
  • ADD
  • SUB
  • LD
  • XCH
  • BBL
  • LDM
  • WRM
  • WMP
  • WRR
  • WR0
  • WR1
  • WR2
  • WR3
  • SBM
  • RDM
  • RDR
  • ADM
  • RD0
  • RD1
  • RD2
  • RD3
  • CLB
  • CLC
  • IAC
  • CMC
  • CMA
  • RAL
  • RAR
  • TCC
  • DAC
  • TCS
  • STC
  • DAA
  • KBP
  • DCL

there is also an extra hlt instruction because for some reason the intel 4004 doesn't have that