This post explains how I style 6502, 65c02 or 45gs02 assembly language.
In addition, standard patterns translated to assembly can be found in Patterns in assembly language .
comments explaining a block of code are positioned at the beginning of the line.
comments explaining an instruction are positioned after the instruction.
Example
// this is a comment explaining// the following code block in a general way. lda #01 sta $d020 ldx #$00 // reset string index!: lda string,x beq done jsr $ffd2 inx jmp !-done: jsr PRIMM .text "THIS IS IMMEDIATE PRINT." .byte 0 jmp *.string: .text "HELLO WORLD" .byte 13, 0