From fc3ace20c4d65da9eeb061cf55669920c3f0a175 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Wed, 8 Aug 2018 13:45:02 +0200 Subject: [PATCH] Fix subbyte constants in Intel syntax --- src/main/scala/millfork/env/Constant.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/millfork/env/Constant.scala b/src/main/scala/millfork/env/Constant.scala index eaa6d5f1..5bc989f1 100644 --- a/src/main/scala/millfork/env/Constant.scala +++ b/src/main/scala/millfork/env/Constant.scala @@ -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)