Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
OPR1 = 239
OPR2 = 176
MODE = 100
and naturally this means calculate 239 + 176. Now, my code does yield the right RESULT, that being 159. But I don't quite understand why the flags are supposed to be set the way they are, in the specificaion as written. I understand why ZF should be 0, I understand why CF should be 100, but I don't understand why SF should be 100. For the first input triplet, that one being (196, 142, 100), the result should be (82, 100, 0, 0), where 82 is RESULT, 100 is CF, and the last two 0 entries being ZF and SF, respectively. Why should this input require SF to be 0, but the input I listed first requiring SF to be 100?