Permalink
Browse files

Fixes #3. Params to MOVW were flipped.

Both ladders in the original report blink with equal on and off times
now.
  • Loading branch information...
1 parent 2a4e925 commit fb9716089d1a4e54437bb03aae41203b1bc314c4 @tadpol committed Mar 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 avrianjump.js
View
@@ -392,7 +392,7 @@ function ASCIItoASM(ascii) {
}
if( d[0].match(/^[A-E]$/) ) {
// test variable.
- result.push("\tmovw r" + varLoc[d[0]] + ", r16");
+ result.push("\tmovw r16, r" + varLoc[d[0]]);
result.push("\tsubi r16, " + lo(d[2]));
result.push("\tsbci r17, " + hi(d[2]));
result.push("\t" + Btst[d[1]] + " 1"); // jump over jump if true.
@@ -442,7 +442,7 @@ function ASCIItoASM(ascii) {
throw "Bad action";
}
/* Save results */
- result.push("\tmovw r16, r" + varLoc[d[0]]);
+ result.push("\tmovw r" + varLoc[d[0]] + ", r16");
}
result.push("\t; End Action");
}

0 comments on commit fb97160

Please sign in to comment.