From e6605214653764ae9cd0d630b481bce119c99be4 Mon Sep 17 00:00:00 2001 From: Adin Ackerman Date: Wed, 26 Apr 2023 17:52:59 -0700 Subject: [PATCH] fixed bug with building label map introduced from uppercase instruction support --- LEGv8-Simulator/Utils/Interpreter.swift | 2 +- LEGv8-Simulator/Views/Settings/AboutView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LEGv8-Simulator/Utils/Interpreter.swift b/LEGv8-Simulator/Utils/Interpreter.swift index 08c84b8..f56e448 100644 --- a/LEGv8-Simulator/Utils/Interpreter.swift +++ b/LEGv8-Simulator/Utils/Interpreter.swift @@ -368,7 +368,7 @@ class Interpreter: ObservableObject { for argument in arguments[1...] { var num: Int64 = 0 if argument.contains(where: { char in char.isLetter}) { - num = dataMap[argument]! + num = dataMap[argument.lowercased()]! } else { num = try parseLiteral(argument) } diff --git a/LEGv8-Simulator/Views/Settings/AboutView.swift b/LEGv8-Simulator/Views/Settings/AboutView.swift index 63b36a6..9dc2c6e 100644 --- a/LEGv8-Simulator/Views/Settings/AboutView.swift +++ b/LEGv8-Simulator/Views/Settings/AboutView.swift @@ -8,7 +8,7 @@ import SwiftUI struct AboutView: View { - let version: String = "1.3.1 (Release)" + let version: String = "1.3.2 (Release)" var body: some View { HStack {