Fix/disasm: more inline evaluators (LDS, LES, LEA, CALL FAR)#2094
Merged
maximilien-noal merged 4 commits intomasterfrom Apr 19, 2026
Merged
Fix/disasm: more inline evaluators (LDS, LES, LEA, CALL FAR)#2094maximilien-noal merged 4 commits intomasterfrom
maximilien-noal merged 4 commits intomasterfrom
Conversation
ExpressionEvaluationService now computes and displays the effective address for LEA instructions instead of reading memory contents. Added AddAddressValue and address expression builders for LEA. Introduced UI tests to verify correct LEA operand evaluation and prevent memory value display. Refactored RegisterToExpression for clarity.
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the disassembly UI’s inline expression evaluation so that operand previews are correct for LEA (effective address vs. memory read) and for far-pointer memory operands used by LDS / CALL FAR.
Changes:
- Add special-case operand formatting for
LEAto show computed effective address rather than dereferenced memory. - Extend memory-size handling to support
SegPtr16(far pointers) asdwordfor evaluation/formatting. - Add new Avalonia UI integration tests covering
LEA,LDS, andCALL FARevaluator behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| tests/Spice86.Tests/UI/ExpressionEvaluatorUITests.cs | Adds UI integration tests for LEA, LDS, and CALL FAR operand evaluation/formatting. |
| src/Spice86/ViewModels/Services/ExpressionEvaluationService.cs | Updates operand evaluation logic to compute address expressions for LEA and handle far-pointer (SegPtr16) memory operands. |
Member
Author
|
@copilot apply changes based on the comments in this thread |
…tors, replace non-ASCII chars Agent-Logs-Url: https://github.com/OpenRakis/Spice86/sessions/39c41621-5b19-46ce-999c-061701146122 Co-authored-by: maximilien-noal <[email protected]>
Contributor
Done in f9e334a:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
kevinferrare
approved these changes
Apr 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Fix gaps in the UI disasm expression evaluators for:
Outside of LEA, changes are generic enough to fix more than those specific cases.
Before:

After:
Rationale behind Changes
Aid in reverse engineering
Suggested Testing Steps
Tested with manual tests. Covered by new UI integration tests which exercise the entire stack.