|
link to this page:
http://pastebin.antiyes.com/index365.html
download this file: click here
|
description/question: the problem is it's still returning a value when the pointer is null...
|
|
|
unsigned int retWordDMA(unsigned int address, unsigned int offset)
{
if((*(unsigned int*) (address) > 0x08800000) && (*(unsigned int*) (address) < 0x0A000000))
{
return *((unsigned int*)(*(unsigned int*) (*(unsigned int*) (address)+offset)));
}
return 0;
}
|
|
|
|
|