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

Function exception2_write

src/cputest.cpp:1490–1521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1488}
1489
1490void exception2_write(uae_u32 opcode, uaecptr addr, int size, uae_u32 val, int fc)
1491{
1492 test_exception = 2;
1493 test_exception_3_w = 1;
1494 test_exception_addr = addr;
1495 test_exception_opcode = opcode;
1496 test_exception_3_fc = fc;
1497 test_exception_3_size = size & 15;
1498 if (size & 0x100) {
1499 regs.write_buffer = val;
1500 } else {
1501 if (size == sz_byte) {
1502 regs.write_buffer &= 0xff00;
1503 regs.write_buffer |= val & 0xff;
1504 } else {
1505 regs.write_buffer = val;
1506 }
1507 }
1508 test_exception_3_di = 1;
1509
1510 if (currprefs.cpu_model == 68000) {
1511 if (generates_group1_exception(regs.ir) && !(opcode & 0x20000)) {
1512 test_exception_3_fc |= 8; // set N/I
1513 }
1514 if (opcode & 0x10000)
1515 test_exception_3_fc |= 8;
1516 if (!(opcode & 0x20000))
1517 test_exception_opcode = regs.ir;
1518 }
1519
1520 doexcstack();
1521}
1522
1523void exception3_read(uae_u32 opcode, uae_u32 addr, int size, int fc)
1524{

Callers

nothing calls this directly

Calls 2

doexcstackFunction · 0.85

Tested by

no test coverage detected