1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-07-05 09:28:54 +00:00

Fix subbyte constants in Intel syntax

This commit is contained in:
Karol Stasiak 2018-08-08 13:45:02 +02:00
parent 2b279ac5e8
commit fc3ace20c4

View File

@ -220,8 +220,8 @@ case class SubbyteConstant(base: Constant, index: Int) extends Constant {
override def toIntelString: String = index match {
case 0 => s"lo(${base.toIntelString})"
case 1 => s"hi($base.toIntelString)"
case i => s"b$i($base.toIntelString)"
case 1 => s"hi(${base.toIntelString})"
case i => s"b$i(${base.toIntelString})"
}
override def isRelatedTo(v: Thing): Boolean = base.isRelatedTo(v)