Naming conventions: Difference between revisions

m (Fixed a typo in 360 assembly, added 6502 Assembly)
Line 35:
=={{header|6502 Assembly}}==
Opcodes can be upper or lower case, or any combination thereof. However the letters must be correct.
 
Labels cannot start with a number. They usually use CamelCase with the first letter lowercase.
 
Constants are typically in all capitals.
 
Variables are typically in lower case.
 
A subroutine called by a macro will often be the macro's name with "do" in front. For example, if a macro is named "getScreenPosition" the associated subroutine is called "doGetScreenPosition" (note that the G in Get is now capitalized since it's no longer the beginning of the name.)
 
1,489

edits