Add support for flags in execution
This commit is contained in:
parent
86f8b723b5
commit
9caa8298fc
4 changed files with 244 additions and 80 deletions
|
|
@ -113,7 +113,7 @@ printMemoryLocationLn addr word = do
|
|||
|
||||
printMemoryLn :: Bool -> MimaMemory -> IO ()
|
||||
printMemoryLn sparse mem = do
|
||||
let addresses = if sparse then sparseAddressRange mem else addressRange mem
|
||||
let addresses = if sparse then sparseUsedAddresses mem else usedAddresses mem
|
||||
forM_ addresses $ \addr -> do
|
||||
printMemoryLocationLn addr (readAt addr mem)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue