#154465 - yellowstar - Wed Apr 16, 2008 8:37 pm
The following is the questions I asked in my Backgrounds topic... Those of you that are reading this, could you at least read this also,(Scroll up for the what the problem is)
and would somebody help by doing this?
(I'd like to know if there's even anybody that's just reading that topic)
Now, for those questions I asked in the original topic that nobody answered:(No offense people...)
Another question:
What's the difference between a cache flush and invalidate?
and would somebody help by doing this?
Quote: |
Everybody, if anybody is reading this, how would you do this? How would you write code to draw a 8-bit image on a bg when the image doesn't fill the whole bg?(Whole demo please, if possible) |
(I'd like to know if there's even anybody that's just reading that topic)
Now, for those questions I asked in the original topic that nobody answered:(No offense people...)
yellowstar in Backgrounds wrote: |
I went through the Patater guide, and found some things about DMA: Patater wrote: When using DMA to copy from main memory, do not forget to flush main memory before using DMA. Another issue to consider would be that in the middle of a DMA, the main CPUs are prevented from using certain memory hardware. I always thought DMA froze the processors while at work? If Patater is correct, that doesn't happen? Flush? He only flushed in OAM updating, unlike what he himself said. I attempted adding code to flush cache, and waiting for DMA to finish, at every DMA ocerance, but still nothing changed. What all would be locked during DMA? Some wackiness with VRAM and numbers: To hold one 256x256 8-bit bg in VRAM, I need 65536 bytes of space. That's 4 blocks; Unlike what some examples say, they say index 3, I find 4. And examples say I only need Bank A, those numbers say I need another one, too. Double buffers take 131072 bytes, that more than what Bank A can handle. Mapping another bank to MAIN_BG doesn't help my problems; Why? Also, why do the examples say what the do, when they seem to be wrong? Or am I wrong? |
yellowstar in Backgrounds wrote: |
DeSmume reports that DISPCNT is contantly changing, why, and what is that register? Is it the old DISPLAY_CR? |
Another question:
What's the difference between a cache flush and invalidate?