Skip to content

Commit

Permalink
Speed code rotateMemRight implemented and tested
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmalecki committed Dec 31, 2018
1 parent 6175a2f commit 935a685
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/mem.asm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ end:
sta $A001
pla; sta $A002
}
.assert "rotateMemRightFast($A000, 5) rotates 5 values", { rotateMemRightFast($A000, 5) }, {
.assert "rotateMemRightFast($A000, 7) rotates 7 values", { rotateMemRightFast($A000, 7) }, {
lda $A000; pha
lda $A001
sta $A000
Expand All @@ -135,5 +135,9 @@ end:
sta $A002
lda $A004
sta $A003
pla; sta $A004
lda $A005
sta $A004
lda $A006
sta $A005
pla; sta $A006
}

0 comments on commit 935a685

Please sign in to comment.