-=> Propably Eric Brayeur wrote to ALL <=-
Hello Eric!
EB> Hi ALL,
EB>
EB> Directly access memory ...
EB>
EB> In BORLAND PASCAL : MEM [$B800:10]=60;
EB>
EB> Please, tell me how to directly access memory in C++ (DOS) ???
char *c; /* Make byte pointer called 'c' */
c = (char*)0xB8000010; /* Point pointer to B800:0010 */
*c = 60; /* Put a value of 60 there where 'c' points (B800:0010) */
EB> Thank you ...
Not at all.
//
// Sir Robin (jsaksa79@hotmail.com)
// http://www.cedunet.com/~jsaksa/games/
// Gamerz Starting Page - Page made for _all_ computer gamers!
//
... Tule poliisikouluun.
--- BBBS/2 v3.33 How-C
---------------
* Origin: Cat-Box - 02-4841086 (2:222/120)
|