jonathanpeppers / dotnes

.NET for the NES game console
MIT License
643 stars 18 forks source link

Added support for locals size of `byte` #18

Closed jonathanpeppers closed 1 year ago

jonathanpeppers commented 1 year ago

Based on attributetable, but with the change:

++// For testing locals
++byte nametable = 0x16;
++
// set background palette colors
pal_bg(PALETTE);

// fill nametable with diamonds
vram_adr(NAMETABLE_A);  // start address ($2000)
--vram_fill(0x16, 32 * 30);   // fill nametable (960 bytes)
++vram_fill(nametable, 32 * 30);   // fill nametable (960 bytes)