mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 05:05:46 +00:00
added thumb mode emulation
This commit is contained in:
parent
c9b5b89e21
commit
7bf24c066b
6 changed files with 522 additions and 4 deletions
|
@ -936,10 +936,10 @@ ARMul_Emulate26 (ARMul_State * state)
|
|||
pipelined PC value is used when executing Thumb code, and also for
|
||||
dealing with the BL instruction. */
|
||||
if (TFLAG) {
|
||||
ARMword new;
|
||||
ARMword new_instr;
|
||||
|
||||
/* Check if in Thumb mode. */
|
||||
switch (ARMul_ThumbDecode (state, pc, instr, &new)) {
|
||||
switch (ARMul_ThumbDecode(state, pc, instr, &new_instr)) {
|
||||
case t_undefined:
|
||||
/* This is a Thumb instruction. */
|
||||
ARMul_UndefInstr (state, instr);
|
||||
|
@ -952,7 +952,7 @@ ARMul_Emulate26 (ARMul_State * state)
|
|||
case t_decoded:
|
||||
/* ARM instruction available. */
|
||||
//printf("t decode %04lx -> %08lx\n", instr & 0xffff, new);
|
||||
instr = new;
|
||||
instr = new_instr;
|
||||
/* So continue instruction decoding. */
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue