diff options
author | Eugene Sandulenko | 2017-01-11 10:17:23 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-11 10:18:20 +0100 |
commit | 9feebaf649a0344cd001417958f0ac2c51765d80 (patch) | |
tree | a386269fdf735a5eb00414384521338311707acb /engines/director/lingo | |
parent | c4f5d262c82ba180d10667a5101f4f009650f369 (diff) | |
download | scummvm-rg350-9feebaf649a0344cd001417958f0ac2c51765d80.tar.gz scummvm-rg350-9feebaf649a0344cd001417958f0ac2c51765d80.tar.bz2 scummvm-rg350-9feebaf649a0344cd001417958f0ac2c51765d80.zip |
DIRECTOR: Lingo: Add debug print out of immediate floats
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-code.cpp | 4 | ||||
-rw-r--r-- | engines/director/lingo/lingo-codegen.cpp | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp index 675f7ef8ca..4543e52f02 100644 --- a/engines/director/lingo/lingo-code.cpp +++ b/engines/director/lingo/lingo-code.cpp @@ -53,14 +53,14 @@ static struct FuncDescr { const char *name; const char *args; } funcDescr[] = { - { 0, "STOP", "" }, + { 0, "STOP", "" }, { Lingo::c_xpop, "c_xpop", "" }, { Lingo::c_printtop, "c_printtop", "" }, { Lingo::c_constpush, "c_constpush", "i" }, { Lingo::c_voidpush, "c_voidpush", "" }, { Lingo::c_fconstpush, "c_fconstpush", "f" }, { Lingo::c_stringpush, "c_stringpush", "s" }, - { Lingo::c_symbolpush, "c_symbolpush","s" }, // D3 + { Lingo::c_symbolpush, "c_symbolpush", "s" }, // D3 { Lingo::c_varpush, "c_varpush", "s" }, { Lingo::c_assign, "c_assign", "" }, { Lingo::c_eval, "c_eval", "s" }, diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp index ba39d10447..6ff3c0c701 100644 --- a/engines/director/lingo/lingo-codegen.cpp +++ b/engines/director/lingo/lingo-codegen.cpp @@ -99,6 +99,14 @@ Common::String Lingo::decodeInstruction(uint pc, uint *newPc) { res += Common::String::format(" %d", v); break; } + case 'f': + { + i = (*_currentScript)[pc++]; + double v = *((double *)&i); + + res += Common::String::format(" %lf", v); + break; + } case 'o': { i = (*_currentScript)[pc++]; |