Exactly, it's not always possible/useful to apply best formatting practises from higher level languages to assembly.ketmar wrote: ↑Thu Jul 02, 2020 9:37 pmit is not even always possible, considering that jumps can create a fine web. it is much easier (and cleaner, i believe) to split the code to "logical blocks" with empty lines.Turtle_Quality wrote: ↑Thu Jul 02, 2020 9:33 pm So no-one indenting for loops, conditional code etc ???
I have a habit of always putting an empty line after jp/jr/call/ret. I also agree with ketmar that blank lines are a good way of separating logical blocks of code. Multiple lines and/or decorated comments for larger units, aka
Code: Select all
; --------------------------------------
; A new section starts here
; --------------------------------------