Orlando Llanes wrote:
Does anyone have any working code to access the VGA segment using only a base address? I'm looking to see if it's possible to access the VGA segment without having to load a segment register under GPC's asm().
Which platform, please? I suppose DJGPP or EMX...
Don't they use memory mapping so that each process has its own address space? In this case it might help to call some memory mapping function, and then you get the linear base address you want.
E.g. for DJGPP: __djgpp_map_physical_memory in dpmi.h (NOTE: I haven't done anything like this myself, I've just grepped the DJGPP includes, so I don't know if this is the correct thing...)