mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-11 12:29:46 +00:00
Fix subbyte constants in Intel syntax
This commit is contained in:
parent
2b279ac5e8
commit
fc3ace20c4
4
src/main/scala/millfork/env/Constant.scala
vendored
4
src/main/scala/millfork/env/Constant.scala
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user