131 avr_flashaddr_t avr_run_one(avr_t *avr)
Instruction decoder, run ONE instruction.
Definition: sim_core.c:705
avr_t * avr
Definition: run_avr.c:54
const char * avr_regname(uint8_t reg)
Definition: sim_core.c:356
uint32_t avr_flashaddr_t
Definition: sim_avr.h:58
uint8_t sreg[8]
Mirror of the SREG register, to facilitate the access to bits in the opcode decoder.
Definition: sim_avr.h:207
int _avr_push_addr(avr_t *avr, avr_flashaddr_t addr)
Definition: sim_core.c:324
uint16_t _avr_sp_get(avr_t *avr)
Stack pointer access.
Definition: sim_core.c:256
Main AVR instance.
Definition: sim_avr.h:142
static void avr_sreg_set(avr_t *avr, uint8_t flag, uint8_t ival)
clear interrupt_state if disabling interrupts.
Definition: sim_core.h:102
void _avr_sp_set(avr_t *avr, uint16_t sp)
Definition: sim_core.c:262
int8_t interrupt_state
Interrupt state: 00: idle (no wait, no pending interrupts) or disabled <0: wait till zero >0: interru...
Definition: sim_avr.h:214