MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / execute_ins

Function execute_ins

src/cputest.cpp:4314–4635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4312}
4313
4314static void execute_ins(uaecptr endpc, uaecptr targetpc, struct instr *dp, bool fpumode)
4315{
4316 uae_u16 opc = regs.ir;
4317 int off = opcode_memory_address - opcode_memory_start + 2;
4318 uae_u16 opw1 = (opcode_memory[off + 0] << 8) | (opcode_memory[off + 1] << 0);
4319 uae_u16 opw2 = (opcode_memory[off + 2] << 8) | (opcode_memory[off + 3] << 0);
4320 if (opc == 0x4e72
4321 && opw1 == 0xa000
4322 //&& opw2 == 0x4afc
4323 )
4324 printf("");
4325 if (regs.sr & 0x2000)
4326 printf("");
4327 if (regs.sr & 0x8000)
4328 printf("");
4329 if (regs.sr & 0x4000)
4330 printf("");
4331
4332 // execute instruction
4333 flag_SPCFLAG_TRACE = 0;
4334 flag_SPCFLAG_DOTRACE = 0;
4335 trace_store_pc = 0xffffffff;
4336 mmufixup[0].reg = -1;
4337 mmufixup[1].reg = -1;
4338
4339 MakeFromSR();
4340
4341 low_memory_accessed = 0;
4342 high_memory_accessed = 0;
4343 test_memory_accessed = 0;
4344 test_memory_access_mask = 0;
4345 testing_active = 1;
4346 testing_active_opcode = opc;
4347 hardware_bus_error = 0;
4348 hardware_bus_error_fake = 0;
4349 read_buffer_prev = regs.irc;
4350 regs.read_buffer = regs.irc;
4351 regs.write_buffer = 0xf00d;
4352 exception_extra_frame_size = 0;
4353 exception_extra_frame_type = 0;
4354 cpu_cycles = 0;
4355 regs.loop_mode = 0;
4356 regs.ipl_pin = feature_initial_interrupt;
4357 interrupt_level = regs.ipl_pin;
4358 regs.ipl[0] = regs.ipl[1] = 0;
4359 regs.ipl_evt_pre = 0;
4360 regs.ipl_evt = 0;
4361 interrupt_level = 0;
4362 interrupt_cycle_cnt = 0;
4363 test_exception_orig = 0;
4364 waitstate_cycle_cnt = 0;
4365 cpuipldelay2 = 2;
4366 cpuipldelay4 = 4;
4367
4368 int cnt = 2;
4369 uaecptr first_pc = regs.pc;
4370 uae_u32 loop_mode_reg = 0;
4371 int stop_count = 0;

Callers 1

test_mnemoFunction · 0.85

Calls 12

check_interruptsFunction · 0.85
isccinstFunction · 0.85
fpu_precision_validFunction · 0.85
m68k_incpciFunction · 0.85
get_iword_testFunction · 0.85
MakeFromSRFunction · 0.70
ExceptionFunction · 0.70
do_traceFunction · 0.70
MakeSRFunction · 0.70
get_iplFunction · 0.70
valid_addressFunction · 0.70

Tested by

no test coverage detected