Hi.
I hate how I indent my assembly code. I helps readability, but I am very inconsistent.
Basically I tend to increase the indent when it feels like a proper branch or a loop (as if it would be one in higher level languages like C) but I tend not to indent when it is simply a random jump target.
I don't want to use unnamed labels. I like how I see my labels in the debugger, it is very useful to me.
This is what it looks like, and I dont like it!
How do you guys do it? Again, i dont want unamed labels.
-Mat
I hate how I indent my assembly code. I helps readability, but I am very inconsistent.
Basically I tend to increase the indent when it feels like a proper branch or a loop (as if it would be one in higher level languages like C) but I tend not to indent when it is simply a random jump target.
I don't want to use unnamed labels. I like how I see my labels in the debugger, it is very useful to me.
This is what it looks like, and I dont like it!
Code:
some_loop: ; this is a loop, so i tend to indent here.
lda test
bmi test_is_negative
test_is_positive: ; feels like a legit branch, so both if/else are indented.
inc test_is_minus
jmp resume
test_is_negative:
dec test_is_minus
resume: ; this label feels ugly.
dec count
bne some_loop
lda test
bmi test_is_negative
test_is_positive: ; feels like a legit branch, so both if/else are indented.
inc test_is_minus
jmp resume
test_is_negative:
dec test_is_minus
resume: ; this label feels ugly.
dec count
bne some_loop
How do you guys do it? Again, i dont want unamed labels.
-Mat