Path: chuka.playstation.co.uk!news From: richard.cutting@virgin.net (Richard Cutting) Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: reading a byte from memory Date: Sun, 23 Aug 1998 20:03:22 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 22 Message-ID: <35e07503.301962@news.playstation.co.uk> References: <35E033B4.838F9761@hi.is> NNTP-Posting-Host: p56-duck-gui.tch.virgin.net X-Newsreader: Forte Free Agent 1.11/32.235 On Sun, 23 Aug 1998 16:22:28 +0100, Ari Pall Albertsson wrote: >hi! > >How do I read a byte from memory? Say that I wanted to know what byte is >in memory location 0x801A0012. How can I read it? > >thanks > Ari Pall > You should be able to get it with something like; byte = *( ( u_long * ) 0x801A0012 ); I'm not sure what you'd define 'byte' as though...int, long, u_long ??? Richard. http://www.netyaroze-europe.com/~rcutting