X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fgpu.cpp;h=e5855fea7eda560f68fcdc186f74b781febaf36d;hb=685bb45b7766e8a12cd0de8ee486b9a61183c425;hp=02fa112a37281ca310b7925de28b3b550b3458bb;hpb=9af4fb023287b26dce01a36c65c9e30f56481051;p=virtualjaguar diff --git a/src/gpu.cpp b/src/gpu.cpp index 02fa112..e5855fe 100644 --- a/src/gpu.cpp +++ b/src/gpu.cpp @@ -323,8 +323,8 @@ static uint32 gpu_div_control; // a bit before writing a result. I.e., if the result of an operation leaves a zero in // the carry flag, you don't have to zero gpu_flag_c before you can write that zero! static uint8 gpu_flag_z, gpu_flag_n, gpu_flag_c; -static uint32 gpu_reg_bank_0[32]; -static uint32 gpu_reg_bank_1[32]; +uint32 gpu_reg_bank_0[32]; +uint32 gpu_reg_bank_1[32]; static uint32 * gpu_reg; static uint32 * gpu_alternate_reg; @@ -780,6 +780,7 @@ WriteLog("GPU: %s setting GPU PC to %08X %s\n", whoName[who], gpu_pc, (GPU_RUNNI { //WriteLog("asked to perform a single step (single step is %senabled)\n",(data&0x8)?"":"not "); } + gpu_control = (gpu_control & 0xF7C0) | (data & (~0xF7C0)); // if gpu wasn't running but is now running, execute a few cycles