Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!mit-eddie!bbn.com!nic!news.cs.brandeis.edu!news!morgan From: morgan@chaos.cs.brandeis.edu (Dylan Kaufman) Newsgroups: comp.lang.c Subject: Direct memory addressing in TURBO C/C++ Message-ID: Date: 28 Feb 91 00:54:03 GMT Sender: usenet@news.cs.brandeis.edu Distribution: comp Organization: Computer Science, Brandeis University, Waltham, MA, USA Lines: 25 Hi, I have been trying to figure out how to do direct memory addressing in C++. The addressing I am thinking about in particular is done with the keyword absolute in TURBO Pascal. For example, to turn the Num Lock key off : var Key_Status_Bit : word absolute $0040:$0017; begin Key_Status_Bits := (Key_Status_Bits and $DF); end. I guess what I'm trying to ask is what the C equivalent (if any) for absolute is... Thanks, -- -<>Dylan<>- MA EMT-M, CA EMT-1A, BEMCo 107 Dylan Kaufman Major in Computer Science morgan@chaos.cs.brandeis.edu Brandeis University, Waltham, MA ------<< Support your local Emergency Medical Services >>------- And on the seventh day, even He rested. We don't. -Emerg. Med. Svcs.