X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpAny.cpp;h=222db2bc46f5300bc7201f2cb2afe8cf8a033979;hb=a9a5a6e0b1788acaf45adaa84a7c2bc9541e5abc;hp=946ecba8d1de681752da0b1f7f4136ff667adbee;hpb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;p=picodrive.git diff --git a/cpu/Cyclone/OpAny.cpp b/cpu/Cyclone/OpAny.cpp index 946ecba..222db2b 100644 --- a/cpu/Cyclone/OpAny.cpp +++ b/cpu/Cyclone/OpAny.cpp @@ -25,11 +25,23 @@ void OpUse(int op,int use) ot(";@ ---------- [%.4x] %s uses Op%.4x ----------\n",op,text,use); } -void OpStart(int op) +void OpStart(int op, int ea) { Cycles=0; OpUse(op,op); // This opcode obviously uses this handler ot("Op%.4x%s\n", op, ms?"":":"); +#if (MEMHANDLERS_NEED_PC || MEMHANDLERS_NEED_CYCLES) + if (ea >= 0x10) { +#if MEMHANDLERS_NEED_PC + ot(" sub r0,r4,#2\n"); + ot(" str r0,[r7,#0x40] ;@ Save PC\n"); +#endif +#if MEMHANDLERS_NEED_CYCLES + ot(" str r5,[r7,#0x5c] ;@ Save Cycles\n"); +#endif + ot("\n"); + } +#endif } void OpEnd()