[A89] Re: C Problems
[Prev][Next][Index][Thread]
[A89] Re: C Problems
Can you give examples?
I assume that you mean it's not possible to read the value from that location... ie:
num=*(char*)0x600015
-Miles Raymond EML: m_rayman@bigfoot.com
AIM: Killer2Ray ICQ: 13217756 IRC: Killer2
WWW: http://www.bigfoot.com/~m_rayman
----- Original Message -----
From: "Sebastian Reichelt" <SebastianR@gmx.de>
To: <assembly-89@lists.ticalc.org>
Sent: Monday, September 03, 2001 4:03 PM
Subject: [A89] Re: C Problems
> Hi!
>
> | you can fiddle with the contents of memory positions (and therefor ports,
> | since they are memorymapped in 68k)
> | fairly easy in C:
> |
> | *(char*)0x600015 = 0x1B;
> |
> | sets 0x600015 to its default value for example.
>
> While this might be all right, reading values this way is not possible
> because of optimization. Therefore you should use PokeIO and PeekIO.
>
> Sebastian Reichelt
References: