Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to keep resident only a part of the program (Developers)

posted by tkchia Homepage, 08.03.2022, 14:20

Hello Laaca, hello tom,

> > Is it safe to perform the
> > relocation not to PSP+256 but to PSP+128? Or to PSP+0?
> PSP+80 should be enough as you probably don't use FCB's, and have used your
> command line (@PSP+128) a long time ago.

Actually, if the program does not use FCBs, one can probably throw away everything above PSP:0x5c (where the first default FCB starts).

(Or perhaps even everything above PSP:0x50. There is a "int 0x21; retf" sequence at PSP:0x50, but other than that there is nothing between PSP:0x50 and PSP:0x5c.)

Thank you!

---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

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