Fix formatting errors
Decimal numbers now look nicer, and --no-sparse works properly again.
This commit is contained in:
parent
a7ef16bc4e
commit
f8c5d2766c
2 changed files with 5 additions and 4 deletions
|
|
@ -92,7 +92,8 @@ fFlags a = do
|
|||
f = feFlags env
|
||||
memoryFlags = if fcShowMemoryFlags conf then fMemoryFlags f a else ""
|
||||
registerFlags = if fcShowRegisterFlags conf then fRegisterFlags s a else ""
|
||||
pure $ memoryFlags <> registerFlags
|
||||
space = if fcShowMemoryFlags conf || fcShowRegisterFlags conf then " " else ""
|
||||
pure $ memoryFlags <> registerFlags <> space
|
||||
|
||||
{- Addresses -}
|
||||
|
||||
|
|
@ -146,7 +147,7 @@ fMemoryLn a = do
|
|||
flags <- fFlags a
|
||||
addr <- fAddress a
|
||||
word <- fWord w
|
||||
pure $ flags <> " " <> addr <> " " <> word <> "\n"
|
||||
pure $ flags <> addr <> " " <> word <> "\n"
|
||||
|
||||
interestingAddresses :: FormatReader (Set.Set MimaAddress)
|
||||
interestingAddresses = do
|
||||
|
|
@ -166,7 +167,7 @@ getAddresses = do
|
|||
then do
|
||||
interesting <- interestingAddresses
|
||||
pure $ Set.toAscList $ Set.union interesting $ Set.fromList $ usedAddresses mem
|
||||
else pure $ usedAddresses mem
|
||||
else pure $ continuousUsedAddresses mem
|
||||
|
||||
fMemory :: Formatter
|
||||
fMemory = do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue