Fix memory dump legend

This commit is contained in:
Joscha 2019-11-06 19:51:34 +00:00
parent a3f2c05875
commit d9d8f4e0b9

View file

@ -43,8 +43,8 @@ memoryToWords :: MimaMemory -> [MimaWord]
memoryToWords mem = map (\addr -> readAt addr mem) $ addressRange mem memoryToWords mem = map (\addr -> readAt addr mem) $ addressRange mem
addrWordLegend :: T.Text addrWordLegend :: T.Text
addrWordLegend = "UO: Upper Opcode (bits 24-21) LO: Lower Opcode (bits 20-17)\n" addrWordLegend = "SO: Small Opcode (bits 23-20) LO: Large Opcode (bits 19-16)\n"
<> "Addr (decimal) - Word ( decimal|UO,LO, Addr) - Instruction\n" <> "Addr (decimal) - Word ( decimal|SO,LO, Addr) - Instruction\n"
addrWordToText :: MimaAddress -> MimaWord -> T.Text addrWordToText :: MimaAddress -> MimaWord -> T.Text
addrWordToText addr word = addrWordToText addr word =