- // must calculate reg EA first, because of situations like: suba.w (A0)+, A0\r
- EaCalc (10,0x1e00, dea,2,1);\r
- EaRead (10, 11, dea,2,0x1e00);\r
-\r
- EaCalc ( 0,0x003f, sea,size,1);\r
- EaRead ( 0, 0, sea,size,0x003f,1);\r
+ // EA calculation order defines how situations like suba.w (A0)+, A0 get handled.\r
+ // different emus act differently in this situation, I couldn't fugure which is right behaviour.\r
+ //if (type == 1)\r
+ {\r
+ EaCalcReadNoSE(-1,0,sea,size,0x003f);\r
+ EaCalcReadNoSE(type!=1?10:-1,11,dea,2,0x0e00);\r
+ }\r
+#if 0\r
+ else\r
+ {\r
+ EaCalcReadNoSE(type!=1?10:-1,11,dea,2,0x0e00);\r
+ EaCalcReadNoSE(-1,0,sea,size,0x003f);\r
+ }\r
+#endif\r