MobyGamer / total-dos-launcher

A system for easily loading and running thousands of DOS programs on vintage hardware
MIT License
109 stars 10 forks source link

TDL should display what method SPAWNO is using for swapping #35

Open MobyGamer opened 6 years ago

MobyGamer commented 6 years ago

It would be useful for debugging and informational purposes to display what method (ems, xms, int15, disk) spawno is using for swapping. Without access to spawno source, this could be achieved by enhancing freeram to display the amount of memory available not just to DOS, but also EMS, XMS, and int15h, and populate the BDA with that info. This could be executed WITHOUT spawno to gather a baseline for the ems, xms, and int15h. Then freeram could be executed again with spawno, and the values could be taken out of the BDA and then compared against the regular execution. Whichever value shows a difference is the method spawno is using. (Not quite -- it shows the method spawno is determining is best at that particular runtime, but this is better than nothing.)