diff options
author | Bertrand Augereau | 2011-08-09 22:04:06 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-08-09 22:40:03 +0200 |
commit | 4ad8b54241fb04aca95618637b50e4220e461034 (patch) | |
tree | 0bc5c7696cc6272b51d5a595b54e7f5aae3e21f5 /engines/dreamweb/dreamgen.cpp | |
parent | 3407f2803aec89fcf091900b841f83683fcc8675 (diff) | |
download | scummvm-rg350-4ad8b54241fb04aca95618637b50e4220e461034.tar.gz scummvm-rg350-4ad8b54241fb04aca95618637b50e4220e461034.tar.bz2 scummvm-rg350-4ad8b54241fb04aca95618637b50e4220e461034.zip |
DREAMWEB: 'checkdest' ported to C++
Diffstat (limited to 'engines/dreamweb/dreamgen.cpp')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 291078169f..2a7c67e889 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -17359,56 +17359,6 @@ holdingreel: data.byte(kWatchmode) = 2; } -void DreamGenContext::checkdest() { - STACK_CHECK; - push(bx); - _add(bx, 12*8); - ah = data.byte(kManspath); - cl = 4; - _shl(ah, cl); - al = data.byte(kDestination); - cl = 24; - ch = data.byte(kDestination); -checkdestloop: - dh = es.byte(bx); - _and(dh, 0xf0); - dl = es.byte(bx); - _and(dl, 0xf); - _cmp(ax, dx); - if (!flags.z()) - goto nextcheck; - al = es.byte(bx+1); - _and(al, 15); - data.byte(kDestination) = al; - bx = pop(); - return; -nextcheck: - dl = es.byte(bx); - _and(dl, 0xf0); - _shr(dl, 1); - _shr(dl, 1); - _shr(dl, 1); - _shr(dl, 1); - dh = es.byte(bx); - _and(dh, 0xf); - _shl(dh, 1); - _shl(dh, 1); - _shl(dh, 1); - _shl(dh, 1); - _cmp(ax, dx); - if (!flags.z()) - goto nextcheck2; - ch = es.byte(bx+1); - _and(ch, 15); -nextcheck2: - _add(bx, 2); - _dec(cl); - if (!flags.z()) - goto checkdestloop; - data.byte(kDestination) = ch; - bx = pop(); -} - void DreamGenContext::bresenhams() { STACK_CHECK; workoutframes(); @@ -20137,7 +20087,6 @@ void DreamGenContext::__dispatch_call(uint16 addr) { case addr_walktotext: walktotext(); break; case addr_getflagunderp: getflagunderp(); break; case addr_setwalk: setwalk(); break; - case addr_checkdest: checkdest(); break; case addr_bresenhams: bresenhams(); break; case addr_workoutframes: workoutframes(); break; case addr_copyname: copyname(); break; |