Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!accuvax.nwu.edu!nucsrl!olsen From: olsen@eecs.nwu.edu (Jeff S. Olsen) Newsgroups: comp.sys.ibm.pc Subject: Re: Direct memory access in Turbo C Message-ID: <3580024@eecs.nwu.edu> Date: 24 Jan 90 19:40:53 GMT References: <25b6a0d3:4290comp.sys.ibm.pc@vpnet.UUCP> Organization: Northwestern U, Evanston IL, USA Lines: 28 to set up a pointer to the screen in turbo-c, do this: #include typedef struct cell { char letter; char attrib; } CELL; main () { CELL far *screen; screen = MK_FP(0xb800,0x0000); /* this is for the color screen */ /* whatever you want here */ } you could just make the screen char far *screen if you wanted to deal with letter and attrib yourself. The important part is the "far" and the MK_FP which stands for make far pointer (which is a macro, so you must include dos.h). hope this helps. Jeff Olsen olsen@eecs.nwu.edu