diff options
author | Vladimir Menshakov | 2011-06-12 21:45:29 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:31 +0200 |
commit | d65083ecaed475f88fac11ff99c72ad8c956ced3 (patch) | |
tree | 04c0bfc03e83931a4bf8e383dfcc712174cf65d9 /engines/dreamweb | |
parent | 0f8eacf0bdab45f574f0e02af89633cf8d9c8300 (diff) | |
download | scummvm-rg350-d65083ecaed475f88fac11ff99c72ad8c956ced3.tar.gz scummvm-rg350-d65083ecaed475f88fac11ff99c72ad8c956ced3.tar.bz2 scummvm-rg350-d65083ecaed475f88fac11ff99c72ad8c956ced3.zip |
DREAMWEB: fixed neg instruction
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/runtime.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/engines/dreamweb/runtime.h b/engines/dreamweb/runtime.h index aaed6866bc..573179d2a1 100644 --- a/engines/dreamweb/runtime.h +++ b/engines/dreamweb/runtime.h @@ -429,17 +429,15 @@ public: } inline void _neg(uint8 &src) { - flags._c = src != 0; - src = ~src; - flags.update_zs(src); - flags._o = false; + uint8 r = 0; + _sub(r, src); + src = r; } inline void _neg(uint16 &src) { - flags._c = src != 0; - src = ~src; - flags.update_zs(src); - flags._o = false; + uint16 r = 0; + _sub(r, src); + src = r; } inline void _movsb() { |