Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Memory mapped devices from resl mode (Developers)

posted by Khusraw E-mail, Bucharest, Romania, 04.03.2020, 15:02
(edited by Khusraw on 04.03.2020, 15:15)

> Or maybe other possibility could be the DPMI assistance.
> I can imagine this scenario:
>
> 1) Resident DPMI server
> 2) Hooked interrupt (or callback) processed in the protected mode
> 3) Realmode soundriver calls interrupt (or callback) which will be routed
> to resident DPMI routine
>
> This mechanism should certainly work for new programs which will be aware
> of this situation.
>
> But it is uncertain about old already compiled games.
> I am not sure about possibility of persistent DPMI hook of
> interrupt/callback

Why would you want to complicate the things and try do that is something that I can't understand. If your program is a DPMI program, then use DPMI to access that memory, if your program is intended to run in real mode/V86 mode, then use INT 15h/87h. If you have a program which uses DPMI-based sound card drivers, then write a DPMI-based driver for it, if you have a program which uses real mode sound card drivers, then write a real mode driver for it and access the HDA's memory registers with INT 15h/87h, it works very well. Your problem is that you don't know how to use an already existing driver, or that you have no driver and want to write one? BTW, if I want to use the same driver with both real mode and DPMI programs, I would rather write a real mode one.

---
Glory to God for all things

 

Complete thread:

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