Home Download Musics Developers
API Sources Tools File Format Technicals

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.

  • Input parameters; Must be set before calling the desa68() function.
  • Output parameters; Information on disassembled instruction filled by desa68() function.
  • Miscellaneous internal fields.

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 destination operand (-1:not a memory 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.



unsigned int pc_org
 Intermediat opcode decoding.

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

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::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.


The documentation for this struct was generated from the following file: