Search
lxdream.org :: lxdream/src/aica/armcore.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/armcore.c
changeset 44:8da2cbcffe24
prev43:0cf3e339cc59
next46:30d123047e16
author nkeynes
date Mon Dec 26 11:52:56 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Default ARM to not-running for sanity's sake
Stop machine on UNIMP abort
file annotate diff log raw
1.1 --- a/src/aica/armcore.c Mon Dec 26 11:47:15 2005 +0000
1.2 +++ b/src/aica/armcore.c Mon Dec 26 11:52:56 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: armcore.c,v 1.8 2005-12-26 11:47:15 nkeynes Exp $
1.6 + * $Id: armcore.c,v 1.9 2005-12-26 11:52:56 nkeynes Exp $
1.7 *
1.8 * ARM7TDMI CPU emulation core.
1.9 *
1.10 @@ -375,7 +375,7 @@
1.11 #define SHIFT(ir) ((ir>>4)&0x07)
1.12 #define DISP24(ir) ((ir&0x00FFFFFF))
1.13 #define UNDEF(ir) do{ arm_raise_exception( EXC_UNDEFINED ); return TRUE; } while(0)
1.14 -#define UNIMP(ir) do{ ERROR( "Halted on unimplemented instruction at %08x, opcode = %04x", PC, ir ); return FALSE; }while(0)
1.15 +#define UNIMP(ir) do{ ERROR( "Halted on unimplemented instruction at %08x, opcode = %04x", PC-4, ir ); dreamcast_stop(); return FALSE; }while(0)
1.16
1.17 /**
1.18 * Determine the value of the shift-operand for a data processing instruction,
.