X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fop.cpp;h=9da791b4214565cc8103c9645bb73074b9323f99;hb=bae593a9f2f6557d271d8b2eacc5d4a825cf4b0a;hp=3765250e1ab55c78d1676f53efdff881c5f6a770;hpb=2136446c0d38d00a651d3eb665ee564b18f94b28;p=virtualjaguar diff --git a/src/op.cpp b/src/op.cpp index 3765250..9da791b 100644 --- a/src/op.cpp +++ b/src/op.cpp @@ -318,8 +318,6 @@ void DumpFixedObject(uint64 p0, uint64 p1) // // Object Processor main routine // -//Need to fix this so that when an GPU object IRQ happens, we can pick up OP processing -//where we left off. !!! FIX !!! #warning "Need to fix this so that when an GPU object IRQ happens, we can pick up OP processing where we left off. !!! FIX !!!" void OPProcessList(int scanline, bool render) { @@ -342,7 +340,7 @@ bool inhibit; int bitmapCounter = 0; // *** END OP PROCESSOR TESTING ONLY *** - uint32 opCyclesToRun = 10000; // This is a pulled-out-of-the-air value (will need to be fixed, obviously!) + uint32 opCyclesToRun = 30000; // This is a pulled-out-of-the-air value (will need to be fixed, obviously!) // if (op_pointer) WriteLog(" new op list at 0x%.8x scanline %i\n",op_pointer,scanline); while (op_pointer) @@ -454,7 +452,8 @@ WriteLog(" --> List end\n\n"); ypos = TOMReadWord(0xF00046, OP) / 2; // Get the VDB value #endif // Actually, no. Any item less than VDB will get only the lines that hang over VDB displayed. -// So we need to fix this somehow... (and it has... in tom.cpp :-P) +// Actually, this is incorrect. It seems that VDB value is wrong somewhere and that's +// what's causing things to fuck up. Still no idea why. uint32 height = (p0 & 0xFFC000) >> 14; uint32 oldOPP = op_pointer - 8; @@ -682,9 +681,13 @@ OP: Scaled bitmap 4x? 4bpp at 34,? hscale=80 fpix=0 data=000756E8 pitch 1 hflipp op_pointer = link; break; case CONDITION_SECOND_HALF_LINE: +//Here's the ASIC code: +// ND4(cctrue5, newheight[2], heightl[1], heightl[0], hcb[10]); +//which means, do the link if bit 10 of HC is set... + // This basically means branch if bit 10 of HC is set #warning "Unhandled condition code causes emulator to crash... !!! FIX !!!" - WriteLog("OP: Unexpected CONDITION_SECOND_HALF_LINE in BRANCH object\nOP: shuting down\n"); + WriteLog("OP: Unexpected CONDITION_SECOND_HALF_LINE in BRANCH object\nOP: shutting down!\n"); LogDone(); exit(0); break;