diff --git a/LEGv8-Simulator/Views/Memory/InspectorView.swift b/LEGv8-Simulator/Views/Memory/InspectorView.swift index 458bba1..b2a5275 100644 --- a/LEGv8-Simulator/Views/Memory/InspectorView.swift +++ b/LEGv8-Simulator/Views/Memory/InspectorView.swift @@ -60,6 +60,9 @@ struct InspectorView: View { if let history = interpreter.history.memory[memID]?.values.sorted(by: <) { ForEach(history) { snapshot in LineMark(x: .value("Program Counter", snapshot.id), y: .value("Memory Value", snapshot.value)) + .interpolationMethod(.stepEnd) + .lineStyle(StrokeStyle(dash: [2, 4])) + .opacity(0.5) PointMark(x: .value("Program Counter", snapshot.id), y: .value("Memory Value", snapshot.value)) .foregroundStyle(snapshot.type == .read ? .purple : .blue) } @@ -69,7 +72,7 @@ struct InspectorView: View { if let selectedEntry { PointMark(x: .value("Program Counter", selectedEntry.id), y: .value("Memory Value", selectedEntry.value)) - .foregroundStyle(.clear) + .foregroundStyle(.white.blendMode(.overlay)) .annotation(position: hoverPosition, alignment: .center, spacing: 0) { VStack(alignment: .leading) { Text("PC: 0x\(String(format: "%llX", selectedEntry.id))") diff --git a/LEGv8-Simulator/Views/Settings/AboutView.swift b/LEGv8-Simulator/Views/Settings/AboutView.swift index 0689dde..0064370 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.0 (Release)" + let version: String = "1.1 (Release)" var body: some View { HStack { diff --git a/README.md b/README.md index 2efae45..6d46fa6 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ In the **Registers** and **Memory** panes, blue dots indicate the value was chan In the **Memory** pane, the green dot indicates the position of the stack pointer and the orange dot indicates the position of the frame pointer. +## Inspector + +In the **Memory** pane, you can select memory addresses and open the inspector to view the values of the memory addresses and how they compare and change as the program executes. + +![](inspector.png) + ## Debugging Just above the console, there are two buttons: *breakpoints* and *step over*. diff --git a/inspector.png b/inspector.png new file mode 100644 index 0000000..7b0f1c1 Binary files /dev/null and b/inspector.png differ