* p{1,3}.c (sim_resume): when running on dos, any character typed to
[deliverable/binutils-gdb.git] / sim / h8300 / p3.c
1 movflags8:
2 n = dst & 0x80;
3 z = !(dst & 0xff);
4 v = 0;
5 goto next;
6 movflags16:
7 n = dst & 0x8000;
8 z = !(dst & 0xffff);
9 v = 0;
10 goto next;
11 aluflags8:
12 n = dst & 0x80;
13 z = !(dst & 0xff);
14 v = ((srca & 0x80) == (srcb & 0x80)) && ((srca & 0x80) != (dst & 0x80));
15 c = dst & 0x100;
16 goto next;
17 aluflags16:
18 n = dst & 0x8000;
19 z = !(dst & 0xffff);
20 v = ((srca & 0x8000) == (srcb & 0x8000)) && ((srca & 0x8000) != (dst & 0x8000));
21 c = dst & 0x10000;
22 goto next;
23 setflags:;
24 SET_CCR(tmp);
25 break;
26 logflags:
27 shiftflags:
28 v = 0;
29 incflags:
30 z = !(dst & 0xff);
31 n = dst & 0x80;
32 goto next;
33 next: ;
34 pc = npc;
35 #ifdef __GO32__
36 if (kbhit())
37 exception = SIGINT;
38 #endif
39 } while (!exception);
40
41 saved_state.cycles = cycles;
42 saved_state.reg[PC] = pc - mem;
43 saved_state.reg[CCR] = GET_CCR();
44 }
This page took 0.029289 seconds and 4 git commands to generate.