working use case

This commit is contained in:
Aearnus 2018-05-25 01:40:25 -07:00
parent 3e5df86c1b
commit 04e42a470a
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ module Main where
import SixtyFiveOhTwo.Instruction
import Control.Monad.State
import qualified Data.ByteString as B
accumulatorLoadNStore :: Instruction
accumulatorLoadNStore = do
@ -15,4 +16,4 @@ myProgram = do
call "accumulatorLoadNStore"
main :: IO ()
main = print $ runState myProgram emptyState
main = B.putStr $ runInstructions myProgram