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

Function exception2_read

src/cputest.cpp:1467–1488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465}
1466
1467void exception2_read(uae_u32 opcode, uaecptr addr, int size, int fc)
1468{
1469 test_exception = 2;
1470 test_exception_3_w = 0;
1471 test_exception_addr = addr;
1472 test_exception_opcode = opcode;
1473 test_exception_3_fc = fc;
1474 test_exception_3_size = size & 15;
1475 test_exception_3_di = 1;
1476
1477 if (currprefs.cpu_model == 68000) {
1478 if (generates_group1_exception(regs.ir) && !(opcode & 0x20000)) {
1479 test_exception_3_fc |= 8; // set N/I
1480 }
1481 if (opcode & 0x10000)
1482 test_exception_3_fc |= 8;
1483 if (!(opcode & 0x20000))
1484 test_exception_opcode = regs.ir;
1485 }
1486
1487 doexcstack();
1488}
1489
1490void exception2_write(uae_u32 opcode, uaecptr addr, int size, uae_u32 val, int fc)
1491{

Callers

nothing calls this directly

Calls 2

doexcstackFunction · 0.85

Tested by

no test coverage detected