[hatari-devel] question about natfeats' code

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


in hatari-glue.c, I see that in OpCode_NatFeat_ID() and OpCode_NatFeat_Call() we have :

        Uint16 SR = M68000_GetSR();

I see that we need to read SR to check for supervisor bit, but why is there a call to SetSR after with the saved value "SR" ? As far as I can see, natfeats.c doesn't alter SR in any way, so this SetSR seems unnecessary to me.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/