dosemu2 / comcom64

64bit command.com
https://github.com/dosemu2/comcom32/
GNU General Public License v3.0
32 stars 5 forks source link

use dosmemget in perform_ver, set_env_size #22

Closed ecm-pushbx closed 5 years ago

ecm-pushbx commented 5 years ago

This is considered more portable than movedata with _dos_ds, see https://github.com/stsp/comcom32/issues/21

ecm-pushbx commented 5 years ago

Added a second commit. All the other uses of movedata seem to be more complicated though. In particular, the environment selector's limit is set to the length of the environment block. And _stubinfo->psp_selector is used to access the PSP (which can be done with dosmemget/dosmemput but is more complex to fix).

stsp commented 5 years ago

Thanks!