start new makefile, migrate to libpicofe
[picodrive.git] / cpu / Cyclone / OpArith.cpp
index b20f6cc..c05f5fd 100644 (file)
@@ -8,7 +8,7 @@ int OpArith(int op)
   int type=0,size=0;\r
   int sea=0,tea=0;\r
   int use=0;\r
-  char *shiftstr="";\r
+  const char *shiftstr="";\r
 \r
   // Get source and target EA\r
   type=(op>>9)&7; if (type==4 || type>=7) return 1;\r
@@ -144,8 +144,8 @@ int OpArithReg(int op)
 {\r
   int use=0;\r
   int type=0,size=0,dir=0,rea=0,ea=0;\r
-  char *asl="";\r
-  char *strop=0;\r
+  const char *asl="";\r
+  const char *strop=0;\r
 \r
   type=(op>>12)&5;\r
   rea =(op>> 9)&7;\r
@@ -534,7 +534,7 @@ int OpAritha(int op)
 {\r
   int use=0;\r
   int type=0,size=0,sea=0,dea=0;\r
-  char *asr="";\r
+  const char *asr="";\r
 \r
   // Suba/Cmpa/Adda/(invalid):\r
   type=(op>>13)&3; if (type>=3) return 1;\r
@@ -591,7 +591,7 @@ int OpAddx(int op)
 {\r
   int use=0;\r
   int type=0,size=0,dea=0,sea=0,mem=0;\r
-  char *asl="";\r
+  const char *asl="";\r
 \r
   type=(op>>14)&1;\r
   dea =(op>> 9)&7;\r
@@ -668,7 +668,7 @@ int OpCmpEor(int op)
 {\r
   int rea=0,eor=0;\r
   int size=0,ea=0,use=0;\r
-  char *asl="";\r
+  const char *asl="";\r
 \r
   // Get EA and register EA\r
   rea=(op>>9)&7;\r
@@ -725,7 +725,7 @@ int OpCmpEor(int op)
 int OpCmpm(int op)\r
 {\r
   int size=0,sea=0,dea=0,use=0;\r
-  char *asl="";\r
+  const char *asl="";\r
 \r
   // get size, get EAs\r
   size=(op>>6)&3; if (size>=3) return 1;\r