home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:11777 comp.os.msdos.programmer:8185
- Newsgroups: comp.lang.c,comp.os.msdos.programmer
- Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news
- From: scs@adam.mit.edu (Steve Summit)
- Subject: Re: Help with converting Borlandc peekb to Microsoft C equivalent
- Message-ID: <1992Jul30.194836.21619@athena.mit.edu>
- Followup-To: comp.os.msdos.programmer
- Sender: news@athena.mit.edu (News system)
- Nntp-Posting-Host: adam.mit.edu
- Organization: none, at the moment
- References: <131818@lll-winken.LLNL.GOV>
- Date: Thu, 30 Jul 1992 19:48:36 GMT
- Lines: 31
-
- In article <131818@lll-winken.LLNL.GOV>, 528010aisws7@llnl.gov writes:
- > We are converting a working Borland-C program to an equivalent Microsoft
- > C++ program. Is there a list of the corresponding function calls.
- > In particular from Borlandc 's pokeb() and peekb() to the Microsoft C++
- > equivalent
-
- From the Jargon file:
-
- :peek: n.,vt. (and {poke}) The commands in most microcomputer
- BASICs for directly accessing memory contents at an absolute
- address; often extended to mean the corresponding constructs in any
- {HLL} (peek reads memory, poke modifies it). Much hacking on
- small, non-MMU micros consists of `peek'ing around memory, more
- or less at random, to find the location where the system keeps
- interesting stuff. Long (and variably accurate) lists of such
- addresses for various computers circulate (see {{interrupt list,
- the}}). The results of `poke's at these addresses may be highly
- useful, mildly amusing, useless but neat, or (most likely) total
- {lossage} (see {killer poke}).
-
- Since a {real operating system} provides useful, higher-level
- services for the tasks commonly performed with peeks and pokes on
- micros, and real languages tend not to encourage low-level memory
- groveling, a question like "How do I do a peek in C?" is
- diagnostic of the {newbie}. (Of course, OS kernels often have to
- do exactly this; a real C hacker would unhesitatingly, if
- unportably, assign an absolute address to a pointer variable and
- indirect through it.)
-
- Steve Summit
- scs@adam.mit.edu
-