🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2352

point to an address above 1M ?

#2352
From: Joe Bradley
Date: Mon, 24 Sep 1990 13:38
16 lines
1042 bytes
Can someone tell me how to set a pointer (in MS C) to an address above
1M? I have a video card which maps its video RAM into the PC address
space from 8M - 10M. I want to access video RAM directly, but I can't
initialize a pointer to this address range presumably because I only
have 16 bits of addressability with the segment portion of a huge pointer.
I don't see how you can point to a physical address above FFFF:FFFF ?!
I tried the following, but the compiler gives the error: "Constant too big."

#define VIDEO_BASE 0x800000000

main() {
    unsigned char huge *ram_p;

    ram_p = ( unsigned char huge * )VIDEO_BASE;
}
Technical Details
Message-ID: <14016@hydra.gatech.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!mephisto!prism!prism.gatech.EDU!gb7

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!mephisto!prism!prism.gatech.EDU!gb7
From: gb7@prism.gatech.EDU (Joe Bradley)
Newsgroups: comp.os.msdos.programmer
Subject: point to an address above 1M ?
Message-ID: <14016@hydra.gatech.EDU>
Date: 24 Sep 90 13:38:12 GMT
Sender: gb7@prism.gatech.EDU
Distribution: usa
Organization: Georgia Tech Research Institute
Lines: 16