#165821 - MaesterRowen - Wed Jan 07, 2009 11:37 pm
Why does the dmaCopy corrupt on hardware (fine on emulator) and memcpy works perfect on both hardware and emulator?
See code snippet below:
I thought it might be something with the 2byte write/read limit and VRAM, but I thought the two lines of code did the same exact thing.
See code snippet below:
Code: |
fread(buffer, 1, size, file); dmaCopyHalfWords(3, buffer, BG_MAP_RAM(0), size); |
Code: |
fread(buffer, 1, size, file); memcpy(BG_MAP_RAM(0), buffer, size); |
I thought it might be something with the 2byte write/read limit and VRAM, but I thought the two lines of code did the same exact thing.