Changes

171 bytes added ,  23:23, 13 July 2015
m
→‎Disassembler: Clarify some defines
Line 155: Line 155:  
<syntaxhighlight lang="C">
 
<syntaxhighlight lang="C">
 
typedef int (*printf_t)(char *fmt, ...);
 
typedef int (*printf_t)(char *fmt, ...);
typedef uint32_t (*find_symbol_t)(uint32_t addr, char *name_buf, uint32_t name_len);
+
typedef uint32_t (*find_symbol_t)(uint32_t addr, char *name_buf, int name_len);
 
</syntaxhighlight>
 
</syntaxhighlight>
    
The flags argument is a bitmask of the following options:
 
The flags argument is a bitmask of the following options:
 
<syntaxhighlight lang="C">
 
<syntaxhighlight lang="C">
#define DISASM_OMIT_ADDR      0x40
+
#define DISASM_OMIT_ADDR      0x40     /* Don't print the address of the instruction */
#define DISASM_OMIT_OPCODE    0x80
+
#define DISASM_OMIT_OPCODE    0x80     /* Don't print the opcode of the instruction */
#define DISASM_GETSYM        0x100
+
#define DISASM_GETSYM        0x100   /* Print the nearest symbol and the instruction's offset from it */
 
</syntaxhighlight>
 
</syntaxhighlight>
  
203

edits