Style: Difference between revisions
Jump to navigation
Jump to search
(New page: Here is a quick draft of what may become a good guideline of how to format your code: * Do not place code on a the same line as a label. * Use tabs before and after instructions. * Place ...) |
mNo edit summary |
||
Line 9: | Line 9: | ||
* place 2 spaces before a local label, this way it will 'pop out' between the subprogram name and the code | * place 2 spaces before a local label, this way it will 'pop out' between the subprogram name and the code | ||
* | * | ||
[[Category:Coding]] |
Revision as of 00:54, 6 January 2010
Here is a quick draft of what may become a good guideline of how to format your code:
- Do not place code on a the same line as a label.
- Use tabs before and after instructions.
- Place a space after comma.
- Don't place a space after a typename (byte/word/dword/..).
- When you need to cast, do it on the memory location, not on the operand.
- Only cast when nescessary.
- place 2 spaces before a local label, this way it will 'pop out' between the subprogram name and the code