From b4f9c4d9cedff63fccff68144d45fb9e1de2304e Mon Sep 17 00:00:00 2001
From: jdh8d <jdh8d@git.zephyr-software.com>
Date: Sun, 28 Feb 2016 21:15:59 +0000
Subject: [PATCH] Former-commit-id: 289869fea211a72222a2ea8e2cc5a7554988a78a

---
 src/interfaces/irdb/STARS_IRDB_Op.cpp | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/src/interfaces/irdb/STARS_IRDB_Op.cpp b/src/interfaces/irdb/STARS_IRDB_Op.cpp
index b9ff2fe8..5f784898 100644
--- a/src/interfaces/irdb/STARS_IRDB_Op.cpp
+++ b/src/interfaces/irdb/STARS_IRDB_Op.cpp
@@ -212,7 +212,20 @@ no operands for eflags or mxcsr?
 			break;
   		case CONSTANT_TYPE + ABSOLUTE_ :
 			OpType=op_Imm;
-			operand.imm.imm=d.Instruction.Immediat;
+			switch(the_arg.ArgSize)
+			{
+				case 8:
+					operand.imm.imm=(signed int)(signed char)d.Instruction.Immediat;
+					break;
+				case 16:
+					operand.imm.imm=(signed int)(signed short)d.Instruction.Immediat;
+					break;
+				case 32:
+				default:
+					operand.imm.imm=d.Instruction.Immediat;
+					break;
+		
+			}
 			operand.imm.pc_rel=false;
 			byteWidth=the_arg.ArgSize/8;
 			break;
-- 
GitLab