Search
lxdream.org :: lxdream :: r227:1b98af7fc601
lxdream 0.9.1
released Jun 29
Download Now
changeset227:1b98af7fc601
parent226:0eeeb25447d3
child228:70adc8ffa8d1
authornkeynes
dateSat Sep 23 11:38:41 2006 +0000 (13 years ago)
Commit implementation of ADDV
src/sh4/sh4core.c
1.1 --- a/src/sh4/sh4core.c Sat Sep 23 10:35:29 2006 +0000
1.2 +++ b/src/sh4/sh4core.c Sat Sep 23 11:38:41 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.c,v 1.30 2006-08-06 09:43:03 nkeynes Exp $
1.6 + * $Id: sh4core.c,v 1.31 2006-09-23 11:38:41 nkeynes Exp $
1.7 *
1.8 * SH4 emulation core, and parent module for all the SH4 peripheral
1.9 * modules.
1.10 @@ -774,7 +774,9 @@
1.11 sh4r.t = ( RN(ir) < tmp || (RN(ir) == tmp && sh4r.t != 0) ? 1 : 0 );
1.12 break;
1.13 case 15:/* ADDV Rm, Rn */
1.14 - UNIMP(ir);
1.15 + tmp = RN(ir) + RM(ir);
1.16 + sh4r.t = ( (RN(ir)>>31) == (RM(ir)>>31) && ((RN(ir)>>31) != (tmp>>31)) );
1.17 + RN(ir) = tmp;
1.18 break;
1.19 default: UNDEF(ir);
1.20 }
.