8 type ValueToParse = String
14 DTF_Data Address Value Code Label Comment |
15 DTF_Instr Address Value Code Label Comment |
18 -- types for intern processing
19 DTF_ToParse Address ValueToParse Code Label Comment |
22 instance Show (DTF) where
23 showsPrec n = showsDTF
25 showsDTF :: DTF -> ShowS
26 showsDTF (DTF_Data a v c l s) = (++) (datins "0" a v c l s)
27 showsDTF (DTF_Instr a v c l s) = (++) (datins "1" a v c l s)
28 showsDTF (DTF_Comment c) = (++) (printf "2;%s\n" c)
29 showsDTF (DTF_Label l) = (++) (printf "3;%s\n" l)
30 showsDTF (DTF_ToParse a v c l s) = (++) (printf "lulz\n")
33 datins :: String -> Address -> Value -> Code -> Label -> Comment -> String
34 datins = printf "%s;%08x;%08x;%s;%s;%s\n"