X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpBranch.cpp;h=63569da199b82b39bfcdadee16fc1019f36974d4;hb=b78efee2b2213cf62a1b8a3b7a5adf05e39b4e4e;hp=061fe01041c7f2d9b103c223c710d8742a701079;hpb=d95259bdaaf911218656d8a74b096ff7306034f6;p=picodrive.git diff --git a/cpu/Cyclone/OpBranch.cpp b/cpu/Cyclone/OpBranch.cpp index 061fe01..63569da 100644 --- a/cpu/Cyclone/OpBranch.cpp +++ b/cpu/Cyclone/OpBranch.cpp @@ -5,10 +5,14 @@ static void CheckPc(void) { #if USE_CHECKPC_CALLBACK + #ifdef MEMHANDLERS_DIRECT_PREFIX + ot(" bl %scheckpc ;@ Call checkpc()\n", MEMHANDLERS_DIRECT_PREFIX); + #else ot(";@ Check Memory Base+pc\n"); ot(" mov lr,pc\n"); ot(" ldr pc,[r7,#0x64] ;@ Call checkpc()\n"); ot("\n"); + #endif #endif } @@ -500,7 +504,7 @@ int OpBranch(int op) OpEnd(size?0x10:0); // since all "DontBranch" code is same for every size, output only once - if (cc>=2&&(op&0xff00)==0x6200) + if (cc>=2&&(op&0xff00)==0x6700) { ot("BccDontBranch%i%s\n", 8<