X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=OpAny.cpp;h=8cb8c09a936423dc1e61f70acf9c4d7e7ce1c35e;hb=ba3db9e7f6f8d2be5a5170dbac3f12c789306970;hp=9d45a0107f57f241729e7ea1641bf1947c3eeedd;hpb=52ac6b1c8f65fe2477ffc3a7fc63ca8ae9d7e59f;p=cyclone68000.git diff --git a/OpAny.cpp b/OpAny.cpp index 9d45a01..8cb8c09 100644 --- a/OpAny.cpp +++ b/OpAny.cpp @@ -112,7 +112,7 @@ void OpEnd(int sea, int tea) } if (opend_check_interrupt) { - ot(" blt CycloneEnd\n"); + ot(" ble CycloneEnd\n"); ot(";@ CheckInterrupt:\n"); if (!opend_check_trace) ot(" ldr r1,[r7,#0x44]\n"); @@ -126,7 +126,7 @@ void OpEnd(int sea, int tea) } else { - ot(" ldrge pc,[r6,r8,asl #2] ;@ Jump to opcode handler\n"); + ot(" ldrgt pc,[r6,r8,asl #2] ;@ Jump to opcode handler\n"); ot(" b CycloneEnd\n"); } ot("\n"); @@ -159,6 +159,12 @@ int OpGetFlags(int subtract,int xbit,int specialz) return 0; } +void OpGetFlagsNZ(int rd) +{ + ot(" and r10,r%d,#0x80000000 ;@ r10=N_flag\n",rd); + ot(" orreq r10,r10,#0x40000000 ;@ get NZ, clear CV\n"); +} + // ----------------------------------------------------------------- int g_op;