Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 384:c9d5c194984b
prev378:f10fbdd4e24b
next391:16afb90b5d47
author nkeynes
date Sun Sep 16 07:01:07 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add DIV1 test cases
Update comment against opcode since it looks to be validated now
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Wed Sep 12 09:20:38 2007 +0000
1.2 +++ b/src/sh4/sh4core.c Sun Sep 16 07:01:07 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.c,v 1.45 2007-09-12 09:20:38 nkeynes Exp $
1.6 + * $Id: sh4core.c,v 1.46 2007-09-16 07:01:07 nkeynes Exp $
1.7 *
1.8 * SH4 emulation core, and parent module for all the SH4 peripheral
1.9 * modules.
1.10 @@ -823,10 +823,7 @@
1.11 case 0x4:
1.12 { /* DIV1 Rm, Rn */
1.13 uint32_t Rn = ((ir>>8)&0xF); uint32_t Rm = ((ir>>4)&0xF);
1.14 - /* This is just from the sh4p manual with some
1.15 - * simplifications (someone want to check it's correct? :)
1.16 - * Why they couldn't just provide a real DIV instruction...
1.17 - */
1.18 + /* This is derived from the sh4 manual with some simplifications */
1.19 uint32_t tmp0, tmp1, tmp2, dir;
1.20
1.21 dir = sh4r.q ^ sh4r.m;
.