Skip to content

Commit

Permalink
#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Recoskie authored Dec 15, 2018
1 parent b069859 commit f6e55be
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions DisassembleX86-64.js
Original file line number Diff line number Diff line change
Expand Up @@ -4020,17 +4020,21 @@ function DecodeImmediate( type, BySize, SizeSetting )

var C64 = 0;

//Add position.

V32 += Pos32;

//Relative size.

var n = Math.min( 0x100000000, Math.pow( 2, 4 << ( S + 1 ) ) );

//Sing bit adjust.

if( V32 >= ( n >> 1 ) ) { V32 -= n; }

//Add position.

V32 += Pos32;

//Remove carry bit and add it to C64.

( C64 = ( ( V32 ) >= n ) ) && ( V32 -= n );
( C64 = ( ( V32 ) >= 0x100000000 ) ) && ( V32 -= 0x100000000 );

//Do not carry to 64 if address is 32, and below.

Expand Down

0 comments on commit f6e55be

Please sign in to comment.