Query: disassembler
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
disassembler(3) Library Functions Manual disassembler(3)NAMEdisassembler - Disassemble a machine instruction and print the resultsSYNOPSISint disassembler ( unsigned long iadr, int regstyle, char *(*get_symname)(unsigned long address), unsigned long (*get_regvalue)(unsigned regnum), unsigned (*get_bytes)(void), void (*print_header) (unsigned long iadr, unsigned instruction) );PARAMETERSSpecifies the instruction address to be disassembled. Specifies how registers are named in the disassembly; if the value is 0, compiler names are used; otherwise, hardware names are used. The next four arguments are function pointers, most of which give the caller some flexibility in the appearance of the disassembly. The only function that must be provided is get_bytes. All other functions are optional; pass a NULL for each that is not needed. Is called with no arguments and returns the next byte or bytes to disassemble. Is passed an address, which is the target of a jmp, jsr, or bsr instruction. If NULL is returned or if get_symname is NULL, the disassembler prints the address; otherwise, the string name is printed as returned from get_symname. If not NULL, is passed a register number and returns the current contents of the specified register. The dis- assembler prints this information along with the instruction disassembly. If not NULL, is passed the instruction address iadr and the cur- rent instruction to be disassembled, which is the return value from get_bytes. Print_header can use these parameters to print any desired information before the actual instruction disassembly is printed.DESCRIPTIONThe disassembler disassembles and prints a machine instruction on stdout. The program must be linked with the object file access routine library libmld.a.RETURN VALUESIf get_bytes is NULL, the disassembler returns -1 and errno is set to EINVAL; otherwise, the number of bytes that were disassembled is returned.RELATED INFORMATIONldfcn(4). delim off disassembler(3)
Related Man Pages |
---|
emulate_branch(3) - ultrix |
execute_branch(3) - ultrix |
disassembler(3) - osf1 |
ndisasm(1) - debian |
tblgen(1) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Dissy 7 (Default branch) |
WLA DX 9.4 (Default branch) |
AsmLib 0.9.59 (Default branch) |
biew 5.7.3 (Default branch) |
Is there any disassembler under minix3?? |