8 type ValueToParse = String
14 DTF_Data Address Value Code Label Comment |
15 DTF_Instr Address Value Code Label Comment |
18 DTF_ToParse Address ValueToParse Code Label Comment
20 instance Show (DTF) where
21 showsPrec n = showsDTF
23 showsDTF :: DTF -> ShowS
24 showsDTF (DTF_Data a v c l s) = (++) (datins "0" a v c l s)
25 showsDTF (DTF_Instr a v c l s) = (++) (datins "1" a v c l s)
26 showsDTF (DTF_Comment c) = (++) (printf "2;%s\n" c)
27 showsDTF (DTF_Label l) = (++) (printf "3;%s\n" l)
28 showsDTF (DTF_ToParse a v c l s) = (++) (printf "lulz\n")
31 datins :: String -> Address -> Value -> Code -> Label -> Comment -> String
32 datins = printf "%s;%08x;%08x;%s;%s;%s\n"