|
|
|
|
|
by staunton
846 days ago
|
|
I know people who insist on putting register addresses (in hex) in their code rather than make a variable because "it's easier to debug by comparing to the user guide. If it was a variable, you would have to look up its value every time". It looks somewhat like this: *(int*)(0xf003) |= 39;
|
|
Code like this should IMO always have a reference to the relevant DS table in comments, and probably an explanation of why you're setting the bits that way.