Browse Source

adding shr and shl to ArduinoSPS and TinySPS

Wilfried Klaas 6 years ago
parent
commit
435480873b
1 changed files with 10 additions and 0 deletions
  1. 10 0
      SPS/SPS.ino

+ 10 - 0
SPS/SPS.ino

@@ -1,5 +1,9 @@
 /*
   SPS System mit dem Arduino.
+  Version 0.11
+  17.12.2018
+  - adding Shift left and shift right to register A
+  
   Version 0.10
   7.12.2018
   - new define for serial programming
@@ -833,6 +837,12 @@ void doCalc(byte data) {
     case 13:
       a = b - a;
       break;
+    case 14:
+      a = a >> 1;
+      break;
+    case 15:
+      a = a << 1;
+      break;
 #endif
     default:
       break;