save 1 instruction cycle
authorTobias Girstmair <tobi@isticktoit.net>
Mon, 26 Apr 2021 07:26:28 +0000 (09:26 +0200)
committerTobias Girstmair <tobi@isticktoit.net>
Mon, 26 Apr 2021 07:26:28 +0000 (09:26 +0200)
bsv.S

diff --git a/bsv.S b/bsv.S
index 72f58f3edd5a8dc7db533bf221925f7214c8d538..b3a6ee5c7521819f3e4e197d21df79ce976e5ccd 100644 (file)
--- a/bsv.S
+++ b/bsv.S
@@ -420,9 +420,8 @@ interrupt:
        ; end divide by ten
        AND     a, tmp_1 ; a restored from tmp_1
        AND     a, #3
-       ADD     pwm, a
+       ADD     a, pwm
 
-       MOV     a, pwm
        SWAP    a
        MOV     pwm, a
        ; next sample is now ready.
Imprint / Impressum