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

Function divul_divbyzero

src/newcpu_common.cpp:1238–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236}
1237
1238static void divul_divbyzero(uae_u16 extra, uae_s64 a, uaecptr oldpc)
1239{
1240 if (currprefs.cpu_model >= 68040) {
1241 SET_CFLG(0);
1242 } else {
1243 uae_s32 a32 = (uae_s32)a;
1244 bool neg32 = a32 < 0;
1245 SET_NFLG(neg32);
1246 SET_ZFLG(a32 == 0);
1247 SET_VFLG(1);
1248 SET_CFLG(0);
1249 }
1250 Exception_cpu_oldpc(5, oldpc);
1251}
1252
1253int m68k_divl(uae_u32 opcode, uae_u32 src, uae_u16 extra, uaecptr oldpc)
1254{

Callers 1

m68k_divlFunction · 0.85

Calls 1

Exception_cpu_oldpcFunction · 0.70

Tested by

no test coverage detected