Search
lxdream.org :: lxdream/src/aica/armdasm.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/armdasm.c
changeset 431:248dd77a9e44
prev302:96b5cc24309c
next561:533f6b478071
author nkeynes
date Mon Nov 19 08:47:39 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Move name-to-driver mappings to display.c and audio.c respectively
Move responsibility for invoking texcache_gl_init() to the driver
file annotate diff log raw
1.1 --- a/src/aica/armdasm.c Wed Jan 17 21:27:20 2007 +0000
1.2 +++ b/src/aica/armdasm.c Mon Nov 19 08:47:39 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: armdasm.c,v 1.12 2007-01-17 21:27:20 nkeynes Exp $
1.6 + * $Id: armdasm.c,v 1.13 2007-10-09 08:11:51 nkeynes Exp $
1.7 *
1.8 * armdasm.c 21 Aug 2004 - ARM7tdmi (ARMv4) disassembler
1.9 *
1.10 @@ -43,7 +43,7 @@
1.11 #define DISP24(ir) ((ir&0x00FFFFFF))
1.12 #define FSXC(ir) msrFieldMask[RN(ir)]
1.13 #define ROTIMM12(ir) ROTATE_RIGHT_LONG(IMM8(ir),IMMROT(ir))
1.14 -#define SIGNEXT24(n) ((n&0x00800000) ? (n|0xFF000000) : (n&0x00FFFFFF))
1.15 +#define SIGNEXT24(n) (((n)&0x00800000) ? ((n)|0xFF000000) : ((n)&0x00FFFFFF))
1.16
1.17
1.18
1.19 @@ -121,6 +121,7 @@
1.20 operand = ROTATE_RIGHT_LONG(operand, tmp);
1.21 return snprintf(buf, len, "#%08Xh", operand );
1.22 }
1.23 + return 0;
1.24 }
1.25
1.26 static int arm_disasm_address_index( uint32_t ir, char *buf, int len )
.