/home/thomas/development/delivery-check/repo/src/decoder_trace.cpp File Reference

#include "types.h"
#include "decoder.h"
#include "avrdevice.h"
#include "hwsreg.h"
#include "helper.h"
#include "flash.h"
#include "rwmem.h"
#include "ioregs.h"
#include "avrerror.h"
Include dependency graph for decoder_trace.cpp:

Go to the source code of this file.

Defines

#define MONSREG   traceOut << (string)(*(core->status))
#define INDEX_FROM_BITMASK(mask)
 Calculate index from mask so that (1<<index)==mask. Crash on incorrect values.

Functions

int abort_in_expression ()

Variables

const char * opcodes_bclr [8]
const char * branch_opcodes_clear [8]
const char * branch_opcodes_set [8]
const char * opcodes_bset [8]

Define Documentation

#define INDEX_FROM_BITMASK ( mask   ) 
Value:
( (mask) == 0x01 ? 0          \
    : (mask) == 0x02 ? 1          \
    : (mask) == 0x04 ? 2          \
    : (mask) == 0x08 ? 3          \
    : (mask) == 0x10 ? 4          \
    : (mask) == 0x20 ? 5          \
    : (mask) == 0x40 ? 6          \
    : (mask) == 0x80 ? 7          \
    : abort_in_expression() )

Calculate index from mask so that (1<<index)==mask. Crash on incorrect values.

Definition at line 42 of file decoder_trace.cpp.

Referenced by avr_op_BRBS::Trace(), and avr_op_BRBC::Trace().

#define MONSREG   traceOut << (string)(*(core->status))

Function Documentation

int abort_in_expression (  ) 

Definition at line 53 of file decoder_trace.cpp.


Variable Documentation

const char* branch_opcodes_clear[8]
Initial value:
 {
    "BRCC",
    "BRNE",
    "BRPL",
    "BRVC",
    "BRGE",
    "BRHC",
    "BRTC",
    "BRID"
}

Definition at line 125 of file decoder_trace.cpp.

Referenced by avr_op_BRBC::Trace().

const char* branch_opcodes_set[8]
Initial value:
 {
    "BRCS",
    "BREQ",
    "BRMO",
    "BRVS",
    "BRLT",
    "BRHS",
    "BRTS",
    "BRIE"
}

Definition at line 152 of file decoder_trace.cpp.

Referenced by avr_op_BRBS::Trace().

const char* opcodes_bclr[8]
Initial value:
 {
    "CLC",
    "CLZ",
    "CLN",
    "CLV",
    "CLS",
    "CLH",
    "CLT",
    "CLI"
}

Definition at line 101 of file decoder_trace.cpp.

Referenced by avr_op_BCLR::Trace().

const char* opcodes_bset[8]
Initial value:
 {
    "SEC",
    "SEZ",
    "SEN",
    "SEV",
    "SES",
    "SEH",
    "SET",
    "SEI"
}

Definition at line 179 of file decoder_trace.cpp.

Referenced by avr_op_BSET::Trace().

Generated on Sun Feb 12 16:44:06 2012 for Simulavr by  doxygen 1.6.3