diff options
| author | 2012-05-02 22:17:43 +0000 | |
|---|---|---|
| committer | 2012-05-02 22:17:43 +0000 | |
| commit | fbb1e711f168f3606602162805bcaf539882f913 (patch) | |
| tree | 85f9e4fe7db915e686a61f91a721f1b930c7bac5 /src | |
| parent | 2fd385bd059906976144d0f927f3dd7053fa5ccb (diff) | |
Changes to mrdriller2's decryption. No whatsnew.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mame/drivers/namcos10.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/drivers/namcos10.c b/src/mame/drivers/namcos10.c index a4647ced284..6be4e052102 100644 --- a/src/mame/drivers/namcos10.c +++ b/src/mame/drivers/namcos10.c @@ -352,9 +352,12 @@ READ32_MEMBER(namcos10_state::range_r) */ UINT16 dd16 = d16 ^ key; + + key = d16; key = - (( BIT(d16, 3) ^ (BIT(cnt, 0) & !BIT(cnt, 2))) << 15) | + //(( BIT(d16, 3) ^ (BIT(cnt, 0) & !BIT(cnt, 2))) << 15) | + ((1 ^ BIT(key, 3) ^ BIT(d16, 0)) << 15) | ((1 ^ BIT(key, 13) ^ BIT(cnt, 0)) << 14) | ((1 ^ BIT(key, 11) ^ BIT(d16, 5) ^ BIT(d16, 2)) << 13) | (( BIT(key, 9) ^ BIT(cnt, 3)) << 12) | @@ -369,7 +372,8 @@ READ32_MEMBER(namcos10_state::range_r) ((1 ^ BIT(key, 8) ^ (BIT(cnt, 7) | BIT(d16, 3))) << 3) | (( BIT(key, 14) ^ (BIT(cnt, 1) | BIT(d16, 7))) << 2) | ((1 ^ BIT(key, 12) ^ (BIT(cnt, 7) & BIT(d16, 7))) << 1) | - (( (BIT(cnt, 0) | BIT(cnt, 2))) << 0); + //(( (BIT(cnt, 0) | BIT(cnt, 2))) << 0); + ((1 ^ BIT(key, 0) ^ BIT(cnt, 2)) << 0); cnt++; |
