X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpAny.cpp;h=a50114acefe90e6602e9dc021f0f854d548e9866;hb=488c0bbf552ddd1b22bfcf2a797a28d8fb89dca0;hp=0ada13f520bf132aa0037f59f41c4f9a3faa6dfb;hpb=0e11c502b05a9ccd67d34d1f0975852d8c3d4232;p=picodrive.git diff --git a/cpu/Cyclone/OpAny.cpp b/cpu/Cyclone/OpAny.cpp index 0ada13f..a50114a 100644 --- a/cpu/Cyclone/OpAny.cpp +++ b/cpu/Cyclone/OpAny.cpp @@ -5,7 +5,7 @@ int opend_op_changes_cycles, opend_check_interrupt, opend_check_trace; static unsigned char OpData[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; -static unsigned short CPU_CALL OpRead16(unsigned int a) +static unsigned short OpRead16(unsigned int a) { return (unsigned short)( (OpData[a&15]<<8) | OpData[(a+1)&15] ); } @@ -133,17 +133,17 @@ int OpBase(int op,int size,int sepa) // Get flags, trashes r2 int OpGetFlags(int subtract,int xbit,int specialz) { - if (specialz) ot(" orr r2,r9,#0xb0000000 ;@ for old Z\n"); + if (specialz) ot(" orr r2,r10,#0xb0000000 ;@ for old Z\n"); - ot(" mrs r9,cpsr ;@ r9=flags\n"); + ot(" mrs r10,cpsr ;@ r10=flags\n"); - if (specialz) ot(" andeq r9,r9,r2 ;@ fix Z\n"); + if (specialz) ot(" andeq r10,r10,r2 ;@ fix Z\n"); - if (subtract) ot(" eor r9,r9,#0x20000000 ;@ Invert carry\n"); + if (subtract) ot(" eor r10,r10,#0x20000000 ;@ Invert carry\n"); if (xbit) { - ot(" str r9,[r7,#0x4c] ;@ Save X bit\n"); + ot(" str r10,[r7,#0x4c] ;@ Save X bit\n"); } return 0; }