Search This Blog

Showing posts with label layout. Show all posts
Showing posts with label layout. Show all posts

Thursday, 21 October 2021

 Code Comprehension

Surely it's better to write this:

      romdata[addr-0x8000] = v1;
      romdata[(addr-0x8000)+1] = v2;
 

like this:

      romdata[(addr-0x8000)+0] = v1;
      romdata[(addr-0x8000)+1] = v2;
 

Ok, it's a bit more typing but it's easier to understand, surely?