git-svn: trunk@4154
aCaB authored on 2008/08/31 11:25:38... | ... |
@@ -90,7 +90,7 @@ static uint8_t vm_cmdflags[]= |
90 | 90 |
#if WORDS_BIGENDIAN == 0 |
91 | 91 |
#define GET_VALUE(byte_mode,addr) ((byte_mode) ? (*(unsigned char *)(addr)) : UINT32((*(unsigned int *)(addr)))) |
92 | 92 |
#else |
93 |
-#define GET_VALUE(byte_mode,addr) rarvm_get_value(byte_mode, (unsigned int *)addr) |
|
93 |
+#define GET_VALUE(byte_mode,addr) ((byte_mode) ? (*(unsigned char *)(addr)) : (((unsigned char *)addr)[0] | ((unsigned char *)addr)[1]<<8 | ((unsigned char *)addr)[2]<<16 | ((unsigned char *)addr)[3]<<24)) |
|
94 | 94 |
#endif |
95 | 95 |
|
96 | 96 |
void rarvm_set_value(int byte_mode, unsigned int *addr, unsigned int value) |
... | ... |
@@ -66,7 +66,7 @@ START_TEST (test_disasm_basic) { |
66 | 66 |
0x28, 0xf4, |
67 | 67 |
/* m11/rm101 - sub ebp, edx */ |
68 | 68 |
0x29, 0xd5, |
69 |
- /* addrsize, m00/rm110 - mov [1122], ebp */ |
|
69 |
+ /* addrsize, m00/rm110 - mov [eax-5355], ebp */ |
|
70 | 70 |
0x67, 0x01, 0x2e, 0xab, 0xac, |
71 | 71 |
/* add al, 17 */ |
72 | 72 |
0x04, 0x17, |