microregop.cc (6361:62de7e765286) | microregop.cc (6440:78d25904f66a) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 64 unchanged lines hidden (view full) --- 73 uint64_t flags = oldFlags & ~flagMask; 74 if(flagMask & (ECFBit | CFBit)) 75 { 76 if(findCarry(dataSize*8, _dest, _src1, _src2)) 77 flags |= (flagMask & (ECFBit | CFBit)); 78 if(subtract) 79 flags ^= (flagMask & (ECFBit | CFBit)); 80 } | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 64 unchanged lines hidden (view full) --- 73 uint64_t flags = oldFlags & ~flagMask; 74 if(flagMask & (ECFBit | CFBit)) 75 { 76 if(findCarry(dataSize*8, _dest, _src1, _src2)) 77 flags |= (flagMask & (ECFBit | CFBit)); 78 if(subtract) 79 flags ^= (flagMask & (ECFBit | CFBit)); 80 } |
81 if(flagMask & PFBit && findParity(dataSize*8, _dest)) | 81 if(flagMask & PFBit && !findParity(8, _dest)) |
82 flags |= PFBit; 83 if(flagMask & AFBit) 84 { 85 if(findCarry(4, _dest, _src1, _src2)) 86 flags |= AFBit; 87 if(subtract) 88 flags ^= AFBit; 89 } --- 36 unchanged lines hidden --- | 82 flags |= PFBit; 83 if(flagMask & AFBit) 84 { 85 if(findCarry(4, _dest, _src1, _src2)) 86 flags |= AFBit; 87 if(subtract) 88 flags ^= AFBit; 89 } --- 36 unchanged lines hidden --- |