NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Scanline -> Name Table  
Posted byASMGuy
Posted on7/11/03 9:20 PM
From IP12.212.199.253  



A correction to the code that I hope is actually a correction :).

for(int x=0;x<32;x++) {
int NTableByte = (nes.scanline/8)+x;
int PTablePtr = ((int)nes.PPUMem[0x2000+NTableByte]) * 16;
int Spec = nes.scanline%8;
byte b1 = nes.PPUMem[0x0000+PTablePtr+Spec];
byte b2 = nes.PPUMem[PTablePtr+8+Spec];
DrawTileLine(b1,b2,x);
}
nes.scanline++;



-
Entire Thread
Subject  Posted byPosted On
*Scanline -> Name Table  ASMGuy7/11/03 9:09 PM
.*Re: Scanline -> Name Table  ASMGuy7/12/03 04:27 AM
.*Re: Scanline -> Name Table  RoboNes7/11/03 9:31 PM
..*Re: Scanline -> Name Table  ASMGuy7/11/03 9:39 PM
...*Re: Scanline -> Name Table  RoboNes7/12/03 10:11 AM
....*Re: Scanline -> Name Table  ASMGuy7/12/03 1:53 PM
.....*Re: Scanline -> Name Table  RoboNes7/12/03 3:32 PM
......*Re: Scanline -> Name Table  ASMGuy7/12/03 6:08 PM
.......*Re: Scanline -> Name Table  quietust7/14/03 3:39 PM
........*Re: Scanline -> Name Table  ASMGuy7/14/03 6:03 PM
.......*Re: Scanline -> Name Table  RoboNes7/14/03 12:43 PM
........*Re: Scanline -> Name Table  ASMGuy7/14/03 5:51 PM
..Re: Scanline -> Name Table  ASMGuy7/11/03 9:20 PM
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo