X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arm%2Farm_emit.h;h=a7700636b2ad63e414138e556125a240a65e534f;hb=804e743b41827d1e8a5337d04638f0a578319893;hp=a270a24d739d969a136b4b9eac5b0215a553c1f9;hpb=d40aa461c5267826ec092f80b9e4db6cc38466b1;p=gpsp.git diff --git a/arm/arm_emit.h b/arm/arm_emit.h index a270a24..a770063 100644 --- a/arm/arm_emit.h +++ b/arm/arm_emit.h @@ -1931,6 +1931,9 @@ void execute_swi_hle_div_thumb(); void execute_swi_hle_div_c() { + if (reg[1] == 0) + // real BIOS supposedly locks up, but game can recover on interrupt + return; s32 result = (s32)reg[0] / (s32)reg[1]; reg[1] = (s32)reg[0] % (s32)reg[1]; reg[0] = result;