jonathanpeppers / dotnes

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

Implement a single local variable #17

Closed jonathanpeppers closed 1 year ago

jonathanpeppers commented 1 year ago

Based on attributetable, but with the change:

++// For testing locals
++uint fill = 32*30;
++
// 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(0x16, fill);   // fill nametable (960 bytes)