summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Sindholt <opensource@zhasha.com>2012-04-29 18:51:33 +0200
committerJoakim Sindholt <opensource@zhasha.com>2012-04-29 18:51:33 +0200
commitec4f577a0fd43cedd89a128e75334b464d8c51ff (patch)
tree9e3b9a2ccf2f2e8a9cfb07f1097fb81bca4263cb
parent84029e6a0cc1fa7b418bc9e8158d1f02c62d23ce (diff)
compiler: Hex strings must be prefixed with X
-rw-r--r--Compiler.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Compiler.hs b/Compiler.hs
index f80d1d0..096767e 100644
--- a/Compiler.hs
+++ b/Compiler.hs
@@ -70,7 +70,7 @@ formatRAM s = if length chunks <= 16
then replicate (64 - length h) '0'
else "") ++ h, l)) lls
delim l = if l < 15 then ',' else ')'
- f (h, l) = printf "INIT_%02X => \"" l ++ h ++ ['\"', delim l]
+ f (h, l) = printf "INIT_%02X => X\"" l ++ h ++ ['\"', delim l]
-- Compile a list of files and accompanying data to a string list
compile :: Bool -> [(FilePath, String)] -> Either Error [String]