@@ -179,8 +179,10 @@ bcc i (ASSIGNCONST l c)
179 = indent i ++ creg l ++ " = " ++ mkConst c ++ ";\n"
179 = indent i ++ creg l ++ " = " ++ mkConst c ++ ";\n"
181 mkConst (I i) = "MKINT(" ++ show i ++ ")"
181 mkConst (I i) = "MKINT(" ++ show i ++ ")"
182+ mkConst (BI i) = let maxInt = 2^30
183+ in if i >= -maxInt && i < maxInt
182− mkConst (BI i) | i > ((-2)^30) && i < (2^30) = "MKINT(" ++ show i ++ ")"
184+ then "MKINT(" ++ show i ++ ")"
183− | otherwise = "MKBIGC(vm,\"" ++ show i ++ "\")"
185+ else "MKBIGC(vm,\"" ++ show i ++ "\")"
184 mkConst (Fl f) = "MKFLOAT(vm, " ++ (map toUpper $ show f) ++ ")"
186 mkConst (Fl f) = "MKFLOAT(vm, " ++ (map toUpper $ show f) ++ ")"
185 mkConst (Ch c) = "MKINT(" ++ show (fromEnum c) ++ ")"
187 mkConst (Ch c) = "MKINT(" ++ show (fromEnum c) ++ ")"
186 mkConst (Str s) = "MKSTR(vm, " ++ showCStr s ++ ")"
188 mkConst (Str s) = "MKSTR(vm, " ++ showCStr s ++ ")"