summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-12-22 17:46:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-12-22 17:46:32 +0100
commitaeab5c91d0d16f11650cd899fdeb9aecd8f014f8 (patch)
treed686bcbd8c96cf2935c40399cf0497f16dc8c842
parent981a19938d3d76aab4d5485d11a80cda160895c8 (diff)
main.S: Fix comments (the APOS check is an if chain, not if-elseif)
-rw-r--r--main.S15
1 files changed, 8 insertions, 7 deletions
diff --git a/main.S b/main.S
index 80e7e17..fc7d86c 100644
--- a/main.S
+++ b/main.S
@@ -224,6 +224,7 @@ pos_bit_is_null:
pos_is_0x80:
ldi POS, 1
+ ; (1)
; Put next ADDRx into BYTE or reset state if we sent all 8 bytes.
; APOS is checked for 1 / 2 / 3 /... in turn and the corresponding
; address set where appropriate. Since there are no shortcuts, this
@@ -233,22 +234,22 @@ pos_is_0x80:
brne .+2 ; if (APOS == 1) {
ldi BYTE, ~ADDR7
cpi APOS, 2 ; }
- brne .+2 ; else if (APOS == 2) {
+ brne .+2 ; if (APOS == 2) {
ldi BYTE, ~ADDR6
cpi APOS, 3 ; }
- brne .+2 ; else if (APOS == 3) {
+ brne .+2 ; if (APOS == 3) {
ldi BYTE, ~ADDR5
cpi APOS, 4 ; }
- brne .+2 ; else if (APOS == 4) {
+ brne .+2 ; if (APOS == 4) {
ldi BYTE, ~ADDR4
cpi APOS, 5 ; }
- brne .+2 ; else if (APOS == 5) {
+ brne .+2 ; if (APOS == 5) {
ldi BYTE, ~ADDR3
cpi APOS, 6 ; }
- brne .+2 ; else if (APOS == 6) {
+ brne .+2 ; if (APOS == 6) {
ldi BYTE, ~ADDR2
cpi APOS, 7 ; }
- brne .+2 ; else if (APOS == 7) {
+ brne .+2 ; if (APOS == 7) {
ldi BYTE, ~ADDR1
cpi APOS, 8 ; }
brne .+4 ; if (APOS == 8) {
@@ -297,7 +298,7 @@ check_pos_else:
ldi SEARCHSTEP, SEARCHSTEP_BIT
ldi POS, 1
- ; see comments above
+ ; see (1)
inc APOS
cpi APOS, 1
brne .+2