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

linear memory version of debugger command SM? #3826

Closed
2 tasks done
leslietoo opened this issue Nov 14, 2022 · 3 comments
Closed
2 tasks done

linear memory version of debugger command SM? #3826

leslietoo opened this issue Nov 14, 2022 · 3 comments
Labels

Comments

@leslietoo
Copy link

Question

There's a SM command built into the debugger:
SM [bytes in hex] Set memory at : to byte values given

SM works under real mode apps/games, but it seems not to work under 32bit protected apps/games like in windows98, I tried SM but nothing changed. So maybe we need a linear memory version SM for protected mode?

Have you checked that no similar question(s) exist?

  • I have searched and didn't find any similar question.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@joncampbell123
Copy link
Owner

joncampbell123 commented Nov 26, 2022

"SM" as inherited from DOSBox SVN expects a 16-bit segment:offset (though offset can be 32-bit). Unless there's any reason not to, it should support protected mode segment:offset as well.

How does "SML" sound for the linear (virtual) flat memory model version?

"SMP" for physical memory?

Understand that the write may fail in protected mode if the debugger attempts a write but the page is marked not present by the guest OS. I'd rather not accidentally cause the debugger to resume execution just for a page fault so it needs to fail that way. However perhaps there should be a debugger command that explicitly touches a guest page with the expectation of resuming execution for guest page faults.

@joncampbell123
Copy link
Owner

joncampbell123 commented Nov 26, 2022

By the way DOSBox-X changes to the debugger should allow you to use the register names in the SM command instead of typing in the hex value manually.

For example:

SM DS:ESI 40 20 80

@joncampbell123
Copy link
Owner

Latest commit adds a "SMV" command, enjoy!

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

No branches or pull requests

2 participants