Skip to content

Commit

Permalink
&&, not ||
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Nov 7, 2013
1 parent 1b17b81 commit d046bb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
images/*
v86_all.js
cpu.js
src/cpu.js

4 changes: 2 additions & 2 deletions src/cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5550,7 +5550,7 @@ function FPU(io)
case 2:
// fist
var st0 = get_st0();
if(st0 <= 0x7FFF || st0 >= -0x8000)
if(st0 <= 0x7FFF && st0 >= -0x8000)
{
safe_write16(addr, integer_round(st0));
}
Expand All @@ -5563,7 +5563,7 @@ function FPU(io)
case 3:
// fistp
var st0 = get_st0();
if(st0 <= 0x7FFF || st0 >= -0x8000)
if(st0 <= 0x7FFF && st0 >= -0x8000)
{
safe_write16(addr, integer_round(st0));
}
Expand Down
2 changes: 1 addition & 1 deletion src/fpu.macro.js
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ function FPU(io)
// fistp
var st0 = integer_round(get_st0());

if(!(st0 <= 0x7FFFFFFFFFFFFFFF || st0 >= -0x8000000000000000))
if(!(st0 <= 0x7FFFFFFFFFFFFFFF && st0 >= -0x8000000000000000))
{
st0 = 0x8000000000000000;
invalid_arithmatic();
Expand Down

0 comments on commit d046bb5

Please sign in to comment.