diff options
Diffstat (limited to 'src/devices/cpu/tms32082/mp_ops.cpp')
-rw-r--r-- | src/devices/cpu/tms32082/mp_ops.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/devices/cpu/tms32082/mp_ops.cpp b/src/devices/cpu/tms32082/mp_ops.cpp index bbe2b04b6e3..867a5ecf54b 100644 --- a/src/devices/cpu/tms32082/mp_ops.cpp +++ b/src/devices/cpu/tms32082/mp_ops.cpp @@ -86,38 +86,38 @@ uint32_t tms32082_mp_device::calculate_cmp(uint32_t src1, uint32_t src2) uint32_t flags = 0; // 32-bits (bits 20-29) - flags |= ((c32) & 1) << 29; // higher than or same (C) - flags |= ((~c32) & 1) << 28; // lower than (~C) - flags |= ((~c32 | z32) & 1) << 27; // lower than or same (~C|Z) - flags |= ((c32 & ~z32) & 1) << 26; // higher than (C&~Z) - flags |= (((n32 & v32) | (~n32 & ~v32)) & 1) << 25; // greater than or equal (N&V)|(~N&~V) - flags |= (((n32 & ~v32) | (~n32 & v32)) & 1) << 24; // less than (N&~V)|(~N&V) + flags |= ((c32) & 1) << 29; // higher than or same (C) + flags |= ((~c32) & 1) << 28; // lower than (~C) + flags |= ((~c32 | z32) & 1) << 27; // lower than or same (~C|Z) + flags |= ((c32 & ~z32) & 1) << 26; // higher than (C&~Z) + flags |= (((n32 & v32) | (~n32 & ~v32)) & 1) << 25; // greater than or equal (N&V)|(~N&~V) + flags |= (((n32 & ~v32) | (~n32 & v32)) & 1) << 24; // less than (N&~V)|(~N&V) flags |= (((n32 & ~v32) | (~n32 & v32) | (z32)) & 1) << 23; // less than or equal (N&~V)|(~N&V)|Z flags |= (((n32 & v32 & ~z32) | (~n32 & ~v32 & ~z32)) & 1) << 22; // greater than (N&V&~Z)|(~N&~V&~Z) - flags |= ((~z32) & 1) << 21; // not equal (~Z) - flags |= ((z32) & 1) << 20; // equal (Z) + flags |= ((~z32) & 1) << 21; // not equal (~Z) + flags |= ((z32) & 1) << 20; // equal (Z) // 16-bits (bits 10-19) - flags |= ((c16) & 1) << 19; // higher than or same (C) - flags |= ((~c16) & 1) << 18; // lower than (~C) - flags |= ((~c16 | z16) & 1) << 17; // lower than or same (~C|Z) - flags |= ((c16 & ~z16) & 1) << 16; // higher than (C&~Z) - flags |= (((n16 & v16) | (~n16 & ~v16)) & 1) << 15; // greater than or equal (N&V)|(~N&~V) - flags |= (((n16 & ~v16) | (~n16 & v16)) & 1) << 14; // less than (N&~V)|(~N&V) + flags |= ((c16) & 1) << 19; // higher than or same (C) + flags |= ((~c16) & 1) << 18; // lower than (~C) + flags |= ((~c16 | z16) & 1) << 17; // lower than or same (~C|Z) + flags |= ((c16 & ~z16) & 1) << 16; // higher than (C&~Z) + flags |= (((n16 & v16) | (~n16 & ~v16)) & 1) << 15; // greater than or equal (N&V)|(~N&~V) + flags |= (((n16 & ~v16) | (~n16 & v16)) & 1) << 14; // less than (N&~V)|(~N&V) flags |= (((n16 & ~v16) | (~n16 & v16) | (z16)) & 1) << 13; // less than or equal (N&~V)|(~N&V)|Z flags |= (((n16 & v16 & ~z16) | (~n16 & ~v16 & ~z16)) & 1) << 12; // greater than (N&V&~Z)|(~N&~V&~Z) - flags |= ((~z16) & 1) << 11; // not equal (~Z) - flags |= ((z16) & 1) << 10; // equal (Z) + flags |= ((~z16) & 1) << 11; // not equal (~Z) + flags |= ((z16) & 1) << 10; // equal (Z) // 8-bits (bits 0-9) - flags |= ((c8) & 1) << 9; // higher than or same (C) - flags |= ((~c8) & 1) << 8; // lower than (~C) - flags |= ((~c8 | z8) & 1) << 7; // lower than or same (~C|Z) - flags |= ((c8 & ~z8) & 1) << 6; // higher than (C&~Z) - flags |= (((n8 & v8) | (~n8 & ~v8)) & 1) << 5; // greater than or equal (N&V)|(~N&~V) - flags |= (((n8 & ~v8) | (~n8 & v8)) & 1) << 4; // less than (N&~V)|(~N&V) + flags |= ((c8) & 1) << 9; // higher than or same (C) + flags |= ((~c8) & 1) << 8; // lower than (~C) + flags |= ((~c8 | z8) & 1) << 7; // lower than or same (~C|Z) + flags |= ((c8 & ~z8) & 1) << 6; // higher than (C&~Z) + flags |= (((n8 & v8) | (~n8 & ~v8)) & 1) << 5; // greater than or equal (N&V)|(~N&~V) + flags |= (((n8 & ~v8) | (~n8 & v8)) & 1) << 4; // less than (N&~V)|(~N&V) flags |= (((n8 & ~v8) | (~n8 & v8) | (z8)) & 1) << 3; // less than or equal (N&~V)|(~N&V)|Z flags |= (((n8 & v8 & ~z8) | (~n8 & ~v8 & ~z8)) & 1) << 2; // greater than (N&V&~Z)|(~N&~V&~Z) - flags |= ((~z8) & 1) << 1; // not equal (~Z) - flags |= ((z8) & 1) << 0; // equal (Z) + flags |= ((~z8) & 1) << 1; // not equal (~Z) + flags |= ((z8) & 1) << 0; // equal (Z) return flags; } |