Copyright | (c) Eric Mertens 2021 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2016/day/25
Assembly that can output binary numbers. We run them until we can establish that the state is looping while producing the desired output sequence.
Synopsis
- data Progress
- data Machine = Machine {
- _machRegisters :: !Registers
- _machProgress :: !Progress
- _machTargets :: !(Set (Int, Registers))
- machProgress :: Lens' Machine Progress
- machRegisters :: Lens' Machine Registers
- machTargets :: Lens' Machine (Set (Int, Registers))
- main :: IO ()
- data Inst
- pInst :: P Inst
- execute :: Vector Inst -> Int -> Bool
Documentation
State of the interpreter
Machine | |
|