jilc-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jilc-patches] CVS: jilc/src jdasm.h,1.5,1.6


From: Gaurav Vaish <address@hidden>
Subject: [Jilc-patches] CVS: jilc/src jdasm.h,1.5,1.6
Date: Tue, 26 Feb 2002 00:05:09 -0500

Update of /cvsroot/jilc/jilc/src
In directory subversions:/tmp/cvs-serv17899

Modified Files:
        jdasm.h 
Log Message:
2002-02-26        Gaurav Vaish <address@hidden>

* Should not convert to Int32 before shifting all. I think, left shift puts
 some non-zero entries.





Index: jdasm.h
===================================================================
RCS file: /cvsroot/jilc/jilc/src/jdasm.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** jdasm.h     25 Feb 2002 15:31:10 -0000      1.5
--- jdasm.h     26 Feb 2002 05:05:06 -0000      1.6
***************
*** 15,24 ****
--- 15,38 ----
  #define PRINT_OP_NAME(x)  printf(" %s ", (x).mnemonic)
  
+ /*
  #define READ_INT32(code,start) ( (((Int32)code[start]) << 0x18) | \
                                                     (((Int32)code[start + 1]) 
<< 0x10) | \
                                                     (((Int32)code[start + 2]) 
<< 0x08) | \
                                                      ((Int32)code[start + 3]) )
+ */
+ 
+ #define READ_INT32(code,start) ( (Int32)((code[start]     << 0x18) | \
+                                         (code[start + 1] << 0x10) | \
+                                         (code[start + 2] << 0x08) | \
+                                         (code[start + 3])) )
+ 
+ /*
  #define READ_INT16(code,start) ( (((Int16)code[start]) << 0x08 | \
                                     (Int16)code[start+1]) )
+ */
+ 
+ #define READ_INT16(code,start) ( (Int16) ((code[start]     << 0x08) | \
+                                           (code[start + 1])) )
+ 
  /**
   * Methods to help printing the deassmbled code.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]