1
Programming / Re: Compiling a PM sample with GCC (2023)
« on: June 02, 2023, 12:32:53 pm »Hi.
I also don't have "SMVDD.SYS"
I found a reference on this book: https://komh.github.io/os2books/pdf/sg244627.pdf
(The Guide to OS/2 Warp Device Drivers. December 1995)
"This driver provides DOS and WIN-OS/2 digital video support. If you do not use DOS or WIN-OS/2 that require digital video support you can remove this driver from CONFIG.SYS."
Checking the readme it says:QuoteSHOW.ZIP is an exectuable and source code which shows you how to
use DIVE (Direct Interface to Video Extensions) to directly
access the video display. It is useful for games and other apps
which need SPEED! You actually write directly to video memory.
It contains the following items:
L CMD sample linker file
DIRECT H fucntion prototypes
SHOW EXE program to display a bitmap
SHOW C source code for DIVE interface
SMVDD SYS Device driver to map addresses
CHICK BMP Bitmap
DIRECT C More DIVE code
C CMD Compiler batch file.
SMVDD.SYS - Device driver to map addresses ? uhm?? It does not mach the description.
Regards
One of the features of SMVDD.SYS is (or rather: was) to provide a function to map a physical address (in this case: the screen aperture) to a linear address valid in the caller's address space so that you can access the screen and write to it like you would write to memory. This functionality is also provided by SCREEN01.SYS and since SCREEN01.SYS is contained in any OS/2 system up to present day, SCREEN01.SYS is the correct pick.
It would take a bit of effort to adapt the code.