]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codeinfo.c
Working on the backend
[cc65] / src / cc65 / codeinfo.c
index 9c5a1b40809b9241dbc2e78ef8d62cf3e0079718..1885306dea10fe1a3d48c1d8328be472c420b3cc 100644 (file)
@@ -296,7 +296,7 @@ static unsigned char GetRegInfo2 (CodeSeg* S,
        }
 
        /* If the instruction is an RTS or RTI, we're done */
-       if (E->OPC == OP65_RTS || E->OPC == OP65_RTI) {
+               if ((E->Info & OF_RET) != 0) {
            break;
        }
 
@@ -336,7 +336,7 @@ static unsigned char GetRegInfo2 (CodeSeg* S,
                }
                if (Index < 0) {
                    Index = CS_GetEntryIndex (S, E);
-               }              
+               }
                        if ((E = CS_GetEntry (S, ++Index)) == 0) {
                    Internal ("GetRegInfo2: No next entry!");
                }