Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 466 Bytes

MLAB_CODING_STYLE.md

File metadata and controls

19 lines (15 loc) · 466 Bytes

MICROLAB CODING STYLE

Indentation:

  • USE AN EDITOR LIKE SUBLIME3 WHICH CONVERTS TAB INTO SPACES
  • 4 SPACES FOR INDENTATION

Alignment: OPCODE OPERANDS ; INLINE-COMMENTS

Comments:

  • MIND THE SPACE AFTER ';'
  • MULTILINE COMMENTS SHOULD BE PLACED BEFORE ANY OPCODES
  • All procedures should start with a standard comment, describing the procedure, the input and return registers

Labels:

  • MEANINGFUL NAMES <LABEL_NAME>: