You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For things that are constant in the CPU, such as CC max (binary 11) we can use constant literals to make code easier to digest for new contributors.
Example:
// definitionpublicconstbyteCC_Max=0b11<<6;// ORpublicconstbyteCC_Max=0b11000000;//// later in the code//case0x30:// JEQ if((SW&CC_Max)==0){PC=TA;}else{this.PC+=3;}break;
Alternatively, we can consider making them static and initializing them using their actual values, e.g.
publicstaticbyteCC_Max=0b11;
and later either translate them as needed or simply doing the conversion during the declaration, not sure, we can get creative.
The text was updated successfully, but these errors were encountered:
For things that are constant in the CPU, such as CC max (binary 11) we can use constant literals to make code easier to digest for new contributors.
Example:
Alternatively, we can consider making them static and initializing them using their actual values, e.g.
and later either translate them as needed or simply doing the conversion during the declaration, not sure, we can get creative.
The text was updated successfully, but these errors were encountered: