Im keeping simply things right now and i wanted to know if im doing well fetching AT data and PT data.
To keep it simply every 8 cc i do the following:
Simple enough ReadPpuMem() reads ppu data from ppu memory and "bk_pt_addr" is conditioned to 0x1000 or 0x0000.
Of course vram_addr is affected by the counters wich i have in variables, resseted they need and updateded as well. I won't post all the code here of course but i wanted to know if that is ok, becouse i get only garbage on screen.
To keep it simply every 8 cc i do the following:
Code:
at_addr = 0x2000 | vram_addr & 0x0FFF
at = ReadPpuMem(at_addr);
pt_addr = bk_pt_addr | at << 4 | fineY;
pt0 = ReadPpuMem(pt_addr);
pt1 = ReadPpuMem(pt_addr + 8);
at = ReadPpuMem(at_addr);
pt_addr = bk_pt_addr | at << 4 | fineY;
pt0 = ReadPpuMem(pt_addr);
pt1 = ReadPpuMem(pt_addr + 8);
Simple enough ReadPpuMem() reads ppu data from ppu memory and "bk_pt_addr" is conditioned to 0x1000 or 0x0000.
Of course vram_addr is affected by the counters wich i have in variables, resseted they need and updateded as well. I won't post all the code here of course but i wanted to know if that is ok, becouse i get only garbage on screen.