Use 'ao-dbg' instead of 's51' to communicate with TeleMetrum
[fw/sdcc] / src / pic16 / peeph.def
index e904c3c4d804b5d0b9437d3c274801e3b19945a5..dffb192d06220ae967e400ac03e3cd0b5cdcf433 100644 (file)
@@ -286,8 +286,23 @@ replace restart {
 }
 
 replace restart {
-        movff   %1,%1
+        movf    %1,w
+        movf    %2,w
 } by {
         ;     peep 12 - Removed redundant move
+        movf    %2,w
 }
 
+replace restart {
+       movf    %1,w
+       xorlw   %2
+       bz      %3
+       bra     %4
+%3:    %5
+} by {
+       ;       peep 101 - test for equality
+       movlw   %2
+       cpfseq  %1
+       bra     %4
+%3:    %5
+}