Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XLAT should support segment override #17

Open
neldredge opened this issue Mar 9, 2023 · 0 comments
Open

XLAT should support segment override #17

neldredge opened this issue Mar 9, 2023 · 0 comments

Comments

@neldredge
Copy link

The 8086 XLAT instruction can take a segment override prefix. Currently the emulator has no way to express this.

One option that would be reasonably consistent with 8086 assembly would be xlat byte es [bx]. Of course no other addressing mode besides [bx] would be valid here. (Actually, I believe the original assembler would let you write some other addressing mode but just ignore it.)

To avoid the parser awkwardness, they used xlat for this "one operand form" and xlatb for the zero-operand form where DS is assumed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant