notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix events loss
[picodrive.git]
/
cpu
/
Cyclone
/
OpArith.cpp
diff --git
a/cpu/Cyclone/OpArith.cpp
b/cpu/Cyclone/OpArith.cpp
index
b20f6cc
..
c05f5fd
100644
(file)
--- a/
cpu/Cyclone/OpArith.cpp
+++ b/
cpu/Cyclone/OpArith.cpp
@@
-8,7
+8,7
@@
int OpArith(int op)
int type=0,size=0;
\r
int sea=0,tea=0;
\r
int use=0;
\r
int type=0,size=0;
\r
int sea=0,tea=0;
\r
int use=0;
\r
- char *shiftstr="";
\r
+ c
onst c
har *shiftstr="";
\r
\r
// Get source and target EA
\r
type=(op>>9)&7; if (type==4 || type>=7) return 1;
\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
{
\r
int use=0;
\r
int type=0,size=0,dir=0,rea=0,ea=0;
\r
- char *asl="";
\r
- char *strop=0;
\r
+ c
onst c
har *asl="";
\r
+ c
onst c
har *strop=0;
\r
\r
type=(op>>12)&5;
\r
rea =(op>> 9)&7;
\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
{
\r
int use=0;
\r
int type=0,size=0,sea=0,dea=0;
\r
- char *asr="";
\r
+ c
onst c
har *asr="";
\r
\r
// Suba/Cmpa/Adda/(invalid):
\r
type=(op>>13)&3; if (type>=3) return 1;
\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
{
\r
int use=0;
\r
int type=0,size=0,dea=0,sea=0,mem=0;
\r
- char *asl="";
\r
+ c
onst c
har *asl="";
\r
\r
type=(op>>14)&1;
\r
dea =(op>> 9)&7;
\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
{
\r
int rea=0,eor=0;
\r
int size=0,ea=0,use=0;
\r
- char *asl="";
\r
+ c
onst c
har *asl="";
\r
\r
// Get EA and register EA
\r
rea=(op>>9)&7;
\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
int OpCmpm(int op)
\r
{
\r
int size=0,sea=0,dea=0,use=0;
\r
- char *asl="";
\r
+ c
onst c
har *asl="";
\r
\r
// get size, get EAs
\r
size=(op>>6)&3; if (size>=3) return 1;
\r
\r
// get size, get EAs
\r
size=(op>>6)&3; if (size>=3) return 1;
\r