File: validity.dpatch

package info (click to toggle)
simulpic 19960826-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 280 kB
  • ctags: 381
  • sloc: cpp: 2,494; perl: 1,836; makefile: 22
file content (20 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#PATCHOPTIONS: -p1
--- simulpic-19960826.orig/tpic.cc
+++ simulpic-19960826/tpic.cc
@@ -841,6 +841,7 @@
 
 void TPic::Clock()
 {
+   TOp_Code New_IR;
 
    if (New_Input_State.MCLR == IN_0)
    {
@@ -872,7 +873,7 @@
                /* Old_Option conserva il valore di OPTION della frazione
                   Q1 di clock (fase di lettura) */
 
-               TOp_Code New_IR = Program_Memory.Read(Regs.PC); /* Fetch */
+               New_IR = Program_Memory.Read(Regs.PC); /* Fetch */
 
                if (IR_Valid)
                   Execute();  /* Modifica: IR_Valid, Sleep, WDT_Timer, PC, ... */