Skip to content
Erik Lothe edited this page Mar 20, 2014 · 10 revisions

Code Documentation

##Conventions## ###Variable names### Smallcaps. Words are divided by underscore.

###Global sub routines### Camelcase. First letter is capitalized.

###Local sub routines### As global sub routines, but prefixed with @.

###Local labels### As variable names, but prefixed with @.

###Parameter passing### Usually by register A. Sometimes also with X and Y. Sometimes by global variables sub_routine_argumenti, where i is 1 or 2. All sub routines that take or return arguments describes how to pass or return parameters in a comment above the sub routine.

Clone this wiki locally