simulavr  1.1.0
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"

Go to the source code of this file.

Macros

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

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]
 

Macro Definition Documentation

◆ INDEX_FROM_BITMASK

#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 \
int 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_BRBC::Trace(), and avr_op_BRBS::Trace().

◆ MONSREG

Function Documentation

◆ abort_in_expression()

int abort_in_expression ( )

Definition at line 53 of file decoder_trace.cpp.

Variable Documentation

◆ branch_opcodes_clear

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().

◆ branch_opcodes_set

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

Definition at line 149 of file decoder_trace.cpp.

Referenced by avr_op_BRBS::Trace().

◆ opcodes_bclr

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().

◆ opcodes_bset

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

Definition at line 173 of file decoder_trace.cpp.

Referenced by avr_op_BSET::Trace().