Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

From 0 to 1 MB in DOS / Beyond the 1 MB barrier in DOS (Developers)

posted by kerravon, Ligao, Free World North, 14.02.2024, 12:53

> > So if you have a CGA at 0xb8000 - before you do the
> > BIOS call that writes to the screen, bank the CGA
> > back in.
> >
> > That also required cooperation from the applications
> > though - to not manipulate the hardware directly.
>
> And no higher prio interrupts (timeslicers) that could potentially
> interfere. So that means applications can't hook (certain?) hw interrupts
> either.
>
> But since the whole dos compatibility essentially hung on the direct
> hardware access, without it would have been a different OS.

More - different applications - ones that conform to the rules.

The rules are actually here:

https://en.wikipedia.org/wiki/Protected_mode

If an application utilized or relied on any of the techniques below, it would not run:

Segment arithmetic
Privileged instructions
Direct hardware access
Writing to a code segment
Executing data
Overlapping segments
Use of BIOS functions, due to the BIOS interrupts being reserved by Intel

In reality, almost all DOS application programs violated these rules


But that to me is the fun thing - to start obeying the rules.

And for what I want to do (run microemacs) - I don't see a barrier to obeying the rules.

Although I wish to change the OS (to a combination of PDOS-generic and OS/2 1.x) for other reasons (mainly that "segment arithmetic" thing - I need something to provide AHINCR and AHSHIFT).

BFN. Paul.

 

Complete thread:

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