| 3372 | error &= 0x0f; |
| 3373 | |
| 3374 | void CellEngine::n_garblebug() |
| 3375 | { |
| 3376 | QUAD *front = (QUAD *)frontMem; |
| 3377 | QUAD *back = (QUAD *)(backMem + |
| 3378 | (backBorder - 1) + |
| 3379 | ((backBorder - 1) * backRowBytes)); |
| 3380 | long backline = backRowBytes >> 2; |
| 3381 | long backstride = backline - ((width >> 2) + 1); |
| 3382 | long frontstride = (screenRowBytes >> 2) - (width >> 2); |
| 3383 | long xsteps = width >> 2; |
| 3384 | long yy; |
| 3385 | |
| 3386 | total = 0; |
| 3387 | |
| 3388 | for (yy = height; |
| 3389 | yy > 0; |
| 3390 | back += backstride, |
| 3391 | front += frontstride, |
| 3392 | yy--) { |
| 3393 | register QUAD b1, b2; |
| 3394 | register QUAD c1, c2; |
| 3395 | register QUAD d1, d2; |
| 3396 | long error = 0; |
| 3397 | long xx; |
| 3398 | |
| 3399 | b2 = back[0]; |
| 3400 | c2 = back[backline]; |
| 3401 | d2 = back[backline << 1]; |
| 3402 | back++; |
| 3403 | |
| 3404 | for (xx = xsteps; |
| 3405 | xx > 0; |
| 3406 | xx--) { |
| 3407 | long result, cells = 0; |
| 3408 | |
| 3409 | b1 = b2; b2 = back[0]; |
| 3410 | c1 = c2; c2 = back[backline]; |
| 3411 | d1 = d2; d2 = back[backline << 1]; |
| 3412 | back++; |
| 3413 | |
| 3414 | GARBLEBUG( BYTE0(b1), BYTE1(b1), BYTE2(b1), |
| 3415 | BYTE0(c1), BYTE1(c1), BYTE2(c1), |
| 3416 | BYTE0(d1), BYTE1(d1), BYTE2(d1) ); |
| 3417 | total += result; |
| 3418 | SETBYTE0(cells, result); |
| 3419 | |
| 3420 | GARBLEBUG( BYTE1(b1), BYTE2(b1), BYTE3(b1), |
| 3421 | BYTE1(c1), BYTE2(c1), BYTE3(c1), |
| 3422 | BYTE1(d1), BYTE2(d1), BYTE3(d1) ); |
| 3423 | total += result; |
| 3424 | SETBYTE1(cells, result); |
| 3425 | |
| 3426 | GARBLEBUG( BYTE2(b1), BYTE3(b1), BYTE0(b2), |
| 3427 | BYTE2(c1), BYTE3(c1), BYTE0(c2), |
| 3428 | BYTE2(d1), BYTE3(d1), BYTE0(d2) ); |
| 3429 | total += result; |
| 3430 | SETBYTE2(cells, result); |
| 3431 |
nothing calls this directly
no outgoing calls
no test coverage detected