Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Overlay swopping and segment macros (Announce)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 22.03.2009, 11:49

> > Here linkers indeed might be unique but the hack is horrible ... the
> > overlay swapping overhead (XMS, EMS, disk) eats away cca 99% of the
> space
> > save achieved ... for a representative example, just check GV EDIT
> > (bloated, and 64 KiB limit) :-(
>
> Let us both continue to believe what we want to believe!

I'm currently writing some simple swapping code (for RxCMD). It does its thing in about 2 KiB, where 256 byte are reserved for the swap method specific code (XMS, HMA, temp. file, %COMSPEC% file). This leaves at least 60 KiB in the same segment which could be swapped in and out if used for overlay management. (So, yes, I agree to Japheth.)

> > > So code similar to this one:
> > > mov ax,TEXT("string 1")
> > > mov bx,TEXT("string 2")
> > > where the macro TEXT will ensure that the strings are written into
> > their
> > > very own segment, cannot be done equally easily in FASM in "MZ-EXE"
> > mode.
> >
> > Maybe true, but I don't see any huge benefit :-|
>
> Just wait and let grow your experience in assembly. Then, in a couple of
> years we might talk about this topic again.

Well, it makes many things easier, but I didn't yet get a case where I couldn't avoid it. (If you use OMF object file output it works with NASM multiline macros I think. Not sure about multi-section binary output.)

---
l

 

Complete thread:

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