I'm a bit in stuck... I need to convert following code to pascal:
Code:
#define OAM_SUB ((uint16*)0x07000400)
SpriteEntry OAMCopySub[128];
void updateOAM(void) {
unsigned int i;
for(i = 0; i < 128 * sizeof(SpriteEntry) / 4 ; i++)
{
((uint32*)OAM_SUB)[i] = ((uint32*)OAMCopySub)[i];
}
}
where SpriteEntry is a struct. OAM_SUB is translated as
[pascal]const
OAM_SUB : puint16 = pointer($07000400);[/pascal]
The problem is that I can't figure a way to typecast hte array of record to OAM_SUB :scratch:
Bookmarks