diff options
author | Willem Jan Palenstijn | 2011-12-04 10:01:37 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-12-04 10:01:37 +0100 |
commit | d4646c335a06fc91e45c690667ed109d14286af3 (patch) | |
tree | 4a4e3703c2b5f0d5f9187b6483146226bb12e98e /engines | |
parent | 98d3a6cc88ca12f6a50ff3af658a53963fd6b071 (diff) | |
download | scummvm-rg350-d4646c335a06fc91e45c690667ed109d14286af3.tar.gz scummvm-rg350-d4646c335a06fc91e45c690667ed109d14286af3.tar.bz2 scummvm-rg350-d4646c335a06fc91e45c690667ed109d14286af3.zip |
DREAMWEB: Move 'readKey' from dreamgen
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 18 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 17 |
2 files changed, 17 insertions, 18 deletions
diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 9596090f86..26080eab41 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -11096,24 +11096,6 @@ _tmp1: multiGet(); } -void DreamGenContext::readKey() { - STACK_CHECK; - bx = data.word(kBufferout); - _cmp(bx, data.word(kBufferin)); - if (flags.z()) - goto nokey; - _inc(bx); - _and(bx, 15); - data.word(kBufferout) = bx; - di = offset_keybuffer; - _add(di, bx); - al = cs.byte(di); - data.byte(kCurrentkey) = al; - return; -nokey: - data.byte(kCurrentkey) = 0; -} - void DreamGenContext::getRidOfReels() { STACK_CHECK; _cmp(data.byte(kRoomloaded), 0); diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index f671bfdd22..92053ca5af 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -3056,6 +3056,23 @@ void DreamGenContext::atmospheres() { cancelCh0(); } +void DreamGenContext::readKey() { + STACK_CHECK; + bx = data.word(kBufferout); + _cmp(bx, data.word(kBufferin)); + if (flags.z()) + goto nokey; + _inc(bx); + _and(bx, 15); + data.word(kBufferout) = bx; + di = offset_keybuffer; + _add(di, bx); + al = cs.byte(di); + data.byte(kCurrentkey) = al; + return; +nokey: + data.byte(kCurrentkey) = 0; +} } /*namespace dreamgen */ |