summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/v810/v810.c
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2012-08-20 13:25:53 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2012-08-20 13:25:53 +0000
commita0ebcd715e40f43400770550b1718232e2fb1a4a (patch)
treea43b0d7b954b56cae15952cf899126ec597c481e /src/emu/cpu/v810/v810.c
parent058179b62d981d3b6206ab36872490df58ce8550 (diff)
Fixed a sign bug with CVT.WS opcode in v810 CPU core [Angelo Salese]
Diffstat (limited to 'src/emu/cpu/v810/v810.c')
-rw-r--r--src/emu/cpu/v810/v810.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/cpu/v810/v810.c b/src/emu/cpu/v810/v810.c
index a848c365163..9d56d2d6eb4 100644
--- a/src/emu/cpu/v810/v810.c
+++ b/src/emu/cpu/v810/v810.c
@@ -920,7 +920,7 @@ static void opCVTS(v810_state *cpustate,UINT32 op)
static void opCVTW(v810_state *cpustate,UINT32 op)
{
//TODO: CY
- float val1=GETREG(cpustate,GET1);
+ float val1=(INT32)GETREG(cpustate,GET1);
SET_OV(0);
SET_Z((val1==0.0)?1:0);
SET_S((val1<0.0)?1:0);