Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

32bit pointers, GPFs and real mode (Developers)

posted by bretjohn(R) Homepage E-mail, Rio Rancho, NM, 29.08.2010, 17:59

> the code is already 100% done, it just doesn't work the same on every
> platform.

Well, then, apparently it's not 100% done. :-|

If it were me, what I would probably do is create some subroutines that use GS:[ESI] as a real mode input parameter. For example, instead of:


I would create a subroutine that does all of the necessary manipulations/calculations and:


That approach should allow you to keep most of your code intact. You could also do it with macros instead of subroutines. I don't know exactly what your code looks like, but you probably wouldn't need to create very many of these types of subroutines/macros to "fix" the program so it would work on any 386+ platform.


Complete thread:

Back to the forum
Board view  Mix view
15297 Postings in 1378 Threads, 254 registered users, 19 users online (0 registered, 19 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum