| 1395 | } |
| 1396 | |
| 1397 | uae_u16 alg_potgor(uae_u16 potgo) |
| 1398 | { |
| 1399 | alg_potgo = potgo; |
| 1400 | |
| 1401 | int ply = alg_get_player(alg_potgo); |
| 1402 | |
| 1403 | if (alg_picmatic_nova == 1) { |
| 1404 | potgo |= (0x1000 | 0x0100 | 0x4000 | 0x0400); |
| 1405 | // right trigger |
| 1406 | if (alg_flag & 128) |
| 1407 | potgo &= ~0x1000; |
| 1408 | |
| 1409 | } else { |
| 1410 | potgo |= (0x1000 | 0x0100); |
| 1411 | // trigger |
| 1412 | if (((alg_flag & 128) && ply == 1) || ((alg_flag & 64) && ply == 0)) |
| 1413 | potgo &= ~0x1000; |
| 1414 | // right start |
| 1415 | if (alg_flag & 8) |
| 1416 | potgo &= ~0x0100; |
| 1417 | } |
| 1418 | |
| 1419 | return potgo; |
| 1420 | } |
| 1421 | uae_u16 alg_joydat(int joy, uae_u16 v) |
| 1422 | { |
| 1423 | if (!alg_flag) |
no test coverage detected