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

Function exception3_read

src/cputest.cpp:1523–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1521}
1522
1523void exception3_read(uae_u32 opcode, uae_u32 addr, int size, int fc)
1524{
1525 test_exception = 3;
1526 test_exception_3_w = 0;
1527 test_exception_addr = addr;
1528 test_exception_opcode = opcode;
1529 test_exception_3_fc = fc;
1530 test_exception_3_size = size & 15;
1531 test_exception_3_di = 1;
1532
1533 if (currprefs.cpu_model == 68000) {
1534 if (generates_group1_exception(regs.ir) && !(opcode & 0x20000)) {
1535 test_exception_3_fc |= 8; // set N/I
1536 }
1537 if (opcode & 0x10000)
1538 test_exception_3_fc |= 8;
1539 test_exception_opcode = regs.ir;
1540 }
1541 if (currprefs.cpu_model == 68010) {
1542 if (opcode & 0x40000) {
1543 test_exception_3_di = 0;
1544 }
1545 }
1546
1547 doexcstack();
1548}
1549void exception3_write(uae_u32 opcode, uae_u32 addr, int size, uae_u32 val, int fc)
1550{
1551 test_exception = 3;

Callers 3

doexcstackFunction · 0.70
exception3_read_access2Function · 0.70
exception3_read_accessFunction · 0.70

Calls 2

doexcstackFunction · 0.85

Tested by

no test coverage detected