Does the NES handle unlisted processor instructions differently from the Famicom?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












As you may be aware, developers used unregistered machine codes in their games, as discussed in this thread. My question isn't why they would do this, but instead if these instructions yielded a difforent result on the NES than it did on the Famicom. Keep in mind that these codes were tested to work on the Famicom, but Nintendo probably didn't care to make sure they had the same behavior on the NES, which was, in a way, a remake of the Famicom for American consumers.










share|improve this question

























    up vote
    2
    down vote

    favorite












    As you may be aware, developers used unregistered machine codes in their games, as discussed in this thread. My question isn't why they would do this, but instead if these instructions yielded a difforent result on the NES than it did on the Famicom. Keep in mind that these codes were tested to work on the Famicom, but Nintendo probably didn't care to make sure they had the same behavior on the NES, which was, in a way, a remake of the Famicom for American consumers.










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      As you may be aware, developers used unregistered machine codes in their games, as discussed in this thread. My question isn't why they would do this, but instead if these instructions yielded a difforent result on the NES than it did on the Famicom. Keep in mind that these codes were tested to work on the Famicom, but Nintendo probably didn't care to make sure they had the same behavior on the NES, which was, in a way, a remake of the Famicom for American consumers.










      share|improve this question













      As you may be aware, developers used unregistered machine codes in their games, as discussed in this thread. My question isn't why they would do this, but instead if these instructions yielded a difforent result on the NES than it did on the Famicom. Keep in mind that these codes were tested to work on the Famicom, but Nintendo probably didn't care to make sure they had the same behavior on the NES, which was, in a way, a remake of the Famicom for American consumers.







      nes nintendo undocumented-opcodes famicom






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 5 hours ago









      Jack Kasbrack

      12911




      12911




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          down vote



          accepted










          To my knowledge, the NES and the Famicom had the exact same CPU (a Ricoh 2A03). So, it's unlikely there were any differences in behavior between the two with regards to undocumented opcodes. As the Ricoh had a 6502 core, you could also expect it has the same undocumented opcodes as the 6502 (not your question, though) - And this document seems to confirm this.



          Other than that, there were some peripheral differences like the cartridge and controller ports, but these would not relate to your question.



          To my knowledge, there is no NES game that wouldn't run on the Famicom or vice versa (except the ones that are incompatible with the changed slot design)






          share|improve this answer






















          • According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
            – Jack Kasbrack
            4 hours ago











          • You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
            – Jack Kasbrack
            3 hours ago










          • Well, clock behavior and undocumented instructions are two different things after all.
            – tofro
            3 hours ago










          • yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
            – Jack Kasbrack
            3 hours ago






          • 1




            @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
            – NobodyNada
            3 hours ago


















          up vote
          2
          down vote













          While the Famicom was different from the NES, a lot of its internal chips, including the CPU, were the same. in other words, there would be no reason why they would act differently. If you were to recreate the CPU yourself, on the other hand, and didn't keep undocumented opcodes in mind, you may come up with a different result.






          share|improve this answer










          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.













          • 1




            You answer is a wee bit similar to the accepted one.
            – Jack Kasbrack
            18 mins ago






          • 1




            I can't comment yet, so I added this answer for clarification's sake.
            – Jonathan O'Brady
            17 mins ago










          • Fair enough. try not to do that too often, though.
            – Jack Kasbrack
            16 mins ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "648"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f8101%2fdoes-the-nes-handle-unlisted-processor-instructions-differently-from-the-famicom%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          4
          down vote



          accepted










          To my knowledge, the NES and the Famicom had the exact same CPU (a Ricoh 2A03). So, it's unlikely there were any differences in behavior between the two with regards to undocumented opcodes. As the Ricoh had a 6502 core, you could also expect it has the same undocumented opcodes as the 6502 (not your question, though) - And this document seems to confirm this.



          Other than that, there were some peripheral differences like the cartridge and controller ports, but these would not relate to your question.



          To my knowledge, there is no NES game that wouldn't run on the Famicom or vice versa (except the ones that are incompatible with the changed slot design)






          share|improve this answer






















          • According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
            – Jack Kasbrack
            4 hours ago











          • You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
            – Jack Kasbrack
            3 hours ago










          • Well, clock behavior and undocumented instructions are two different things after all.
            – tofro
            3 hours ago










          • yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
            – Jack Kasbrack
            3 hours ago






          • 1




            @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
            – NobodyNada
            3 hours ago















          up vote
          4
          down vote



          accepted










          To my knowledge, the NES and the Famicom had the exact same CPU (a Ricoh 2A03). So, it's unlikely there were any differences in behavior between the two with regards to undocumented opcodes. As the Ricoh had a 6502 core, you could also expect it has the same undocumented opcodes as the 6502 (not your question, though) - And this document seems to confirm this.



          Other than that, there were some peripheral differences like the cartridge and controller ports, but these would not relate to your question.



          To my knowledge, there is no NES game that wouldn't run on the Famicom or vice versa (except the ones that are incompatible with the changed slot design)






          share|improve this answer






















          • According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
            – Jack Kasbrack
            4 hours ago











          • You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
            – Jack Kasbrack
            3 hours ago










          • Well, clock behavior and undocumented instructions are two different things after all.
            – tofro
            3 hours ago










          • yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
            – Jack Kasbrack
            3 hours ago






          • 1




            @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
            – NobodyNada
            3 hours ago













          up vote
          4
          down vote



          accepted







          up vote
          4
          down vote



          accepted






          To my knowledge, the NES and the Famicom had the exact same CPU (a Ricoh 2A03). So, it's unlikely there were any differences in behavior between the two with regards to undocumented opcodes. As the Ricoh had a 6502 core, you could also expect it has the same undocumented opcodes as the 6502 (not your question, though) - And this document seems to confirm this.



          Other than that, there were some peripheral differences like the cartridge and controller ports, but these would not relate to your question.



          To my knowledge, there is no NES game that wouldn't run on the Famicom or vice versa (except the ones that are incompatible with the changed slot design)






          share|improve this answer














          To my knowledge, the NES and the Famicom had the exact same CPU (a Ricoh 2A03). So, it's unlikely there were any differences in behavior between the two with regards to undocumented opcodes. As the Ricoh had a 6502 core, you could also expect it has the same undocumented opcodes as the 6502 (not your question, though) - And this document seems to confirm this.



          Other than that, there were some peripheral differences like the cartridge and controller ports, but these would not relate to your question.



          To my knowledge, there is no NES game that wouldn't run on the Famicom or vice versa (except the ones that are incompatible with the changed slot design)







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 3 hours ago

























          answered 4 hours ago









          tofro

          13.5k32877




          13.5k32877











          • According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
            – Jack Kasbrack
            4 hours ago











          • You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
            – Jack Kasbrack
            3 hours ago










          • Well, clock behavior and undocumented instructions are two different things after all.
            – tofro
            3 hours ago










          • yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
            – Jack Kasbrack
            3 hours ago






          • 1




            @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
            – NobodyNada
            3 hours ago

















          • According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
            – Jack Kasbrack
            4 hours ago











          • You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
            – Jack Kasbrack
            3 hours ago










          • Well, clock behavior and undocumented instructions are two different things after all.
            – tofro
            3 hours ago










          • yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
            – Jack Kasbrack
            3 hours ago






          • 1




            @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
            – NobodyNada
            3 hours ago
















          According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
          – Jack Kasbrack
          4 hours ago





          According to the creator of (I think) FCEUX, the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync. I didn't write that in my question, because I'm not 100% sure if that's the case, but clock cycles would seem to be the biggest culprit in terms of version differences.
          – Jack Kasbrack
          4 hours ago













          You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
          – Jack Kasbrack
          3 hours ago




          You are correct, however, that all documented 6502 instructions were kept in tact, with an almost identical CPU.
          – Jack Kasbrack
          3 hours ago












          Well, clock behavior and undocumented instructions are two different things after all.
          – tofro
          3 hours ago




          Well, clock behavior and undocumented instructions are two different things after all.
          – tofro
          3 hours ago












          yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
          – Jack Kasbrack
          3 hours ago




          yes, but they are related in this case. As I said, use of undocumented instructions may be correlated with clock cycle differences, but I do not know for sure.
          – Jack Kasbrack
          3 hours ago




          1




          1




          @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
          – NobodyNada
          3 hours ago





          @JackKasbrack "the CPU is different in regard to clock cycles, and sometimes the CPU has to add clock cycles to keep it in sync" That's not something I've heard before; can you provide a source for that?
          – NobodyNada
          3 hours ago











          up vote
          2
          down vote













          While the Famicom was different from the NES, a lot of its internal chips, including the CPU, were the same. in other words, there would be no reason why they would act differently. If you were to recreate the CPU yourself, on the other hand, and didn't keep undocumented opcodes in mind, you may come up with a different result.






          share|improve this answer










          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.













          • 1




            You answer is a wee bit similar to the accepted one.
            – Jack Kasbrack
            18 mins ago






          • 1




            I can't comment yet, so I added this answer for clarification's sake.
            – Jonathan O'Brady
            17 mins ago










          • Fair enough. try not to do that too often, though.
            – Jack Kasbrack
            16 mins ago














          up vote
          2
          down vote













          While the Famicom was different from the NES, a lot of its internal chips, including the CPU, were the same. in other words, there would be no reason why they would act differently. If you were to recreate the CPU yourself, on the other hand, and didn't keep undocumented opcodes in mind, you may come up with a different result.






          share|improve this answer










          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.













          • 1




            You answer is a wee bit similar to the accepted one.
            – Jack Kasbrack
            18 mins ago






          • 1




            I can't comment yet, so I added this answer for clarification's sake.
            – Jonathan O'Brady
            17 mins ago










          • Fair enough. try not to do that too often, though.
            – Jack Kasbrack
            16 mins ago












          up vote
          2
          down vote










          up vote
          2
          down vote









          While the Famicom was different from the NES, a lot of its internal chips, including the CPU, were the same. in other words, there would be no reason why they would act differently. If you were to recreate the CPU yourself, on the other hand, and didn't keep undocumented opcodes in mind, you may come up with a different result.






          share|improve this answer










          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          While the Famicom was different from the NES, a lot of its internal chips, including the CPU, were the same. in other words, there would be no reason why they would act differently. If you were to recreate the CPU yourself, on the other hand, and didn't keep undocumented opcodes in mind, you may come up with a different result.







          share|improve this answer










          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited 13 mins ago





















          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 19 mins ago









          Jonathan O'Brady

          314




          314




          New contributor




          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Jonathan O'Brady is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.







          • 1




            You answer is a wee bit similar to the accepted one.
            – Jack Kasbrack
            18 mins ago






          • 1




            I can't comment yet, so I added this answer for clarification's sake.
            – Jonathan O'Brady
            17 mins ago










          • Fair enough. try not to do that too often, though.
            – Jack Kasbrack
            16 mins ago












          • 1




            You answer is a wee bit similar to the accepted one.
            – Jack Kasbrack
            18 mins ago






          • 1




            I can't comment yet, so I added this answer for clarification's sake.
            – Jonathan O'Brady
            17 mins ago










          • Fair enough. try not to do that too often, though.
            – Jack Kasbrack
            16 mins ago







          1




          1




          You answer is a wee bit similar to the accepted one.
          – Jack Kasbrack
          18 mins ago




          You answer is a wee bit similar to the accepted one.
          – Jack Kasbrack
          18 mins ago




          1




          1




          I can't comment yet, so I added this answer for clarification's sake.
          – Jonathan O'Brady
          17 mins ago




          I can't comment yet, so I added this answer for clarification's sake.
          – Jonathan O'Brady
          17 mins ago












          Fair enough. try not to do that too often, though.
          – Jack Kasbrack
          16 mins ago




          Fair enough. try not to do that too often, though.
          – Jack Kasbrack
          16 mins ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f8101%2fdoes-the-nes-handle-unlisted-processor-instructions-differently-from-the-famicom%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery