1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-25 19:29:49 +00:00

Fix Z80-based platforms

This commit is contained in:
Karol Stasiak 2018-07-07 00:13:46 +02:00
parent a00ba49820
commit 265f729b24

View File

@ -88,7 +88,7 @@ object Platform {
}
}
val startingModules = cs.get(classOf[String], "modules", "").split("[, ]+").filter(_.nonEmpty).toList
val zpRegisterSize = cs.get(classOf[String], "zeropage_register", "2").toLowerCase match {
val zpRegisterSize = cs.get(classOf[String], "zeropage_register", "").toLowerCase match {
case "" | null => if (CpuFamily.forType(cpu) == CpuFamily.M6502) 2 else 0
case "true" | "on" | "yes" => 2
case "false" | "off" | "no" | "0" => 0