diff options
author | Vladimir Menshakov | 2011-06-10 02:31:18 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:33:52 +0200 |
commit | f7a3a552f33d3f8c952e70d9d4c01ec420d220e5 (patch) | |
tree | 6130b4b85d530ece3a3143b0e6768a9c12d38974 | |
parent | 9193f33aadae381cbb309272062cacebc50c24a7 (diff) | |
download | scummvm-rg350-f7a3a552f33d3f8c952e70d9d4c01ec420d220e5.tar.gz scummvm-rg350-f7a3a552f33d3f8c952e70d9d4c01ec420d220e5.tar.bz2 scummvm-rg350-f7a3a552f33d3f8c952e70d9d4c01ec420d220e5.zip |
DREAMWEB: fixed CF for neg instruction
-rw-r--r-- | engines/dreamweb/runtime.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h index 475647b69a..525a4df5b9 100644 --- a/engines/dreamweb/runtime.h +++ b/engines/dreamweb/runtime.h @@ -405,15 +405,17 @@ public: } inline void _neg(uint8 &src) { + flags._c = src != 0; src = ~src; flags.update(src); - flags._c = flags._o = false; + flags._o = false; } inline void _neg(uint16 &src) { + flags._c = src != 0; src = ~src; flags.update(src); - flags._c = flags._o = false; + flags._o = false; } inline void _movsb() { |