sln_2016_25
Copyright(c) Eric Mertens 2021
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

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

Documentation

data Progress Source #

Expected next output

Constructors

NeedOne 
NeedZero 

data Machine Source #

State of the interpreter

Instances

Instances details
HasRegisters Machine Source # 
Instance details

Defined in Main

Methods

reg :: Functor f => Register -> LensLike' f Machine Int #

main :: IO () Source #

>>> :main
Just 192

data Inst Source #

Instances

Instances details
Show Inst Source # 
Instance details

Defined in Main

Methods

showsPrec :: Int -> Inst -> ShowS #

show :: Inst -> String #

showList :: [Inst] -> ShowS #