DESA68parm_t Struct Reference
[desa68 library documentation.]

#include <desa68.h>


Detailed Description

68K disassemble pass parameters.

The DESA68parm_t data structure contains the information necessary to disassemble 68K instructions.

There are 3 categories of fields in this structure.

Note:
The DESA68parm_t::pc field is both input and output since it is use to set the address of the instruction to decode and returns with the value of the next one.


Data Fields

Input parameters.
These parameters must be set before calling the desa68() functions.

unsigned char * mem
 Base of 68K memory.
unsigned int memmsk
 Size of memory - 1 (mask).
unsigned int pc
 Address (Offset in mem) of instruction to disassemble; Returns with the address of the next instruction.
int flags
 Disassemble options
char * str
 Destination string.
int strmax
 Destination string buffer size.
unsigned int immsym_min
 Minimum value to interpret long immediat or absolute long as symbol.
unsigned int immsym_max
 Maximum value to interpret long immediat or absolute long as symbol.
Output parameters.
These parameters are setted by the desa68() functions.

unsigned int ea_src
 Effective address of source operand (-1:not a memory operand).
unsigned int ea_dst
 Effective address of destiantion operand (-1:not a memory operand). Effective address of destination operand.
unsigned int status
 disassembly instruction flags
unsigned int branch
 Branch or interrupt vector address.
int w
 Last decoded word (16 bit sign extended).
char * s
 Pointer to current destination char.
Miscellaneous internal variables.

For internal use only.



int reg0
 Intermediat opcode decoding.
int reg9
 Intermediat opcode decoding.
int mode3
 Intermediat opcode decoding.
int mode6
 Intermediat opcode decoding.
int opsz
 Intermediat opcode decoding.
int line
 Intermediat opcode decoding.
int adrmode0
 Intermediat opcode decoding.
int adrmode6
 Intermediat opcode decoding.
int szchar
 Intermediat opcode decoding.
unsigned int ea
 Intermediat opcode decoding.


Field Documentation

unsigned char* DESA68parm_t::mem

Base of 68K memory.

unsigned int DESA68parm_t::memmsk

Size of memory - 1 (mask).

char* DESA68parm_t::str

Destination string.

int DESA68parm_t::strmax

Destination string buffer size.

Warning:
Unused

unsigned int DESA68parm_t::immsym_min

Minimum value to interpret long immediat or absolute long as symbol.

See also:
DESA68_SYMBOL_FLAG for more details

immsym_max

unsigned int DESA68parm_t::immsym_max

Maximum value to interpret long immediat or absolute long as symbol.

See also:
DESA68_SYMBOL_FLAG for more details

immsym_min

unsigned int DESA68parm_t::ea_src

Effective address of source operand (-1:not a memory operand).

unsigned int DESA68parm_t::branch

Branch or interrupt vector address.

If the dissassembled instruction was a branch a call or a sotfware interrupt the DESA68parm_t::branch is set to the jump address or the interrupt vector involved.

See also:
status for more information on instruction type.

int DESA68parm_t::w

Last decoded word (16 bit sign extended).

char* DESA68parm_t::s

Pointer to current destination char.

int DESA68parm_t::reg0

Intermediat opcode decoding.

int DESA68parm_t::reg9

Intermediat opcode decoding.

int DESA68parm_t::mode3

Intermediat opcode decoding.

int DESA68parm_t::mode6

Intermediat opcode decoding.

int DESA68parm_t::opsz

Intermediat opcode decoding.

int DESA68parm_t::line

Intermediat opcode decoding.

int DESA68parm_t::adrmode0

Intermediat opcode decoding.

int DESA68parm_t::adrmode6

Intermediat opcode decoding.

int DESA68parm_t::szchar

Intermediat opcode decoding.

unsigned int DESA68parm_t::ea

Intermediat opcode decoding.


The documentation for this struct was generated from the following file:
Generated on Wed Jul 25 10:05:08 2007 for sc68fordevelopers by  doxygen 1.5.2