Skip to content

DuffleOne/opcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opcode

Started playing with the opcode interpreter from advent of code, and got carried away. Wanted to see if I could modularise the design a little.

It does include my puzzle input, but you can change that easily in cmd/opcode.go

Applications

  • 01: add
  • 02: mul
  • 03: input
  • 04: output
  • 05: jump if true
  • 06: jump if false
  • 07: less than
  • 08: equals
  • 09: adjust relative base
  • 99: halt

Run

go run cmd/opcode.go

Test

go test ./...

About

Opcode interpreter from advent of code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages