diff options
author | Eugene Sandulenko | 2018-12-18 22:53:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-12-18 22:53:30 +0100 |
commit | 0dab01862c3c1e34a80a239788a1d81fd9b679fd (patch) | |
tree | 8a2e39089adddaa5dbb03030a9c92dd5c05dbca4 /engines/glk/frotz/processor_maths.cpp | |
parent | ba00661b3a531834e6f7d648144996540539573c (diff) | |
download | scummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.tar.gz scummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.tar.bz2 scummvm-rg350-0dab01862c3c1e34a80a239788a1d81fd9b679fd.zip |
JANITORIAL: Whitespace fixes
Diffstat (limited to 'engines/glk/frotz/processor_maths.cpp')
-rw-r--r-- | engines/glk/frotz/processor_maths.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/engines/glk/frotz/processor_maths.cpp b/engines/glk/frotz/processor_maths.cpp index 5a2a522cc2..79ff65c5f4 100644 --- a/engines/glk/frotz/processor_maths.cpp +++ b/engines/glk/frotz/processor_maths.cpp @@ -26,29 +26,29 @@ namespace Glk { namespace Frotz { void Processor::z_add() { - store((zword)((short)zargs[0] + (short)zargs[1])); + store((zword)((short)zargs[0] + (short)zargs[1])); } void Processor::z_and() { - store((zword)(zargs[0] & zargs[1])); + store((zword)(zargs[0] & zargs[1])); } void Processor::z_art_shift() { - if ((short)zargs[1] > 0) + if ((short)zargs[1] > 0) store((zword)((short)zargs[0] << (short)zargs[1])); - else + else store((zword)((short)zargs[0] >> - (short)zargs[1])); } void Processor::z_div() { - if (zargs[1] == 0) + if (zargs[1] == 0) runtimeError(ERR_DIV_ZERO); - store((zword)((short)zargs[0] / (short)zargs[1])); + store((zword)((short)zargs[0] / (short)zargs[1])); } void Processor::z_je() { - branch( + branch( zargc > 1 && (zargs[0] == zargs[1] || ( zargc > 2 && (zargs[0] == zargs[2] || ( zargc > 3 && (zargs[0] == zargs[3]))))) @@ -56,45 +56,45 @@ void Processor::z_je() { } void Processor::z_jg() { - branch((short)zargs[0] > (short)zargs[1]); + branch((short)zargs[0] > (short)zargs[1]); } void Processor::z_jl() { - branch((short)zargs[0] < (short)zargs[1]); + branch((short)zargs[0] < (short)zargs[1]); } void Processor::z_jz() { - branch((short)zargs[0] == 0); + branch((short)zargs[0] == 0); } void Processor::z_log_shift() { - if ((short)zargs[1] > 0) + if ((short)zargs[1] > 0) store((zword)(zargs[0] << (short)zargs[1])); - else + else store((zword)(zargs[0] >> - (short)zargs[1])); } void Processor::z_mod() { - if (zargs[1] == 0) + if (zargs[1] == 0) runtimeError(ERR_DIV_ZERO); - store((zword)((short)zargs[0] % (short)zargs[1])); + store((zword)((short)zargs[0] % (short)zargs[1])); } void Processor::z_mul() { - store((zword)((short)zargs[0] * (short)zargs[1])); + store((zword)((short)zargs[0] * (short)zargs[1])); } void Processor::z_not() { - store((zword)~zargs[0]); + store((zword)~zargs[0]); } void Processor::z_or() { - store((zword)(zargs[0] | zargs[1])); + store((zword)(zargs[0] | zargs[1])); } void Processor::z_sub() { - store((zword)((short)zargs[0] - (short)zargs[1])); + store((zword)((short)zargs[0] - (short)zargs[1])); } void Processor::z_test() { |