{"id":218613,"date":"2014-04-08T09:49:02","date_gmt":"2014-04-08T05:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=218613"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=218613","title":{"rendered":"<span class=\"post_title\">PVS-Studio \u0438 3DO-\u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/420\/fa9\/602\/420fa96027016bc0d3c11cffb604adf3.png\" alt=\"Picture 2\"\/><br \/>  \u0417\u0430\u0440\u0435\u043a\u0430\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043a\u0430\u044e\u0441\u044c. \u041d\u043e \u0442\u0443\u0442 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0430\u043a\u043e\u0439 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0448\u0442\u0443\u043a\u043e\u0439 \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <a href=\"http:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio<\/a>. \u041f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430 \u0447\u0435\u043c \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0441\u0442\u0430\u043b \u043c\u043e\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 3DO (Phoenix Project). \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 90-\u0445 \u0431\u044b\u043b\u0430 \u0442\u0430\u043a\u0430\u044f \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430, \u043f\u0435\u0440\u0432\u0430\u044f 32-\u0445 \u0431\u0438\u0442\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441 CD-\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u043c, \u043f\u043e\u043c\u043d\u044e \u043d\u0430\u043c \u0441 \u0431\u0440\u0430\u0442\u043e\u043c \u0435\u0435 \u043e\u0442\u0435\u0446 \u0438\u0437 \u041c\u043e\u0441\u043a\u0432\u044b \u043f\u0440\u0438\u0432\u0435\u0437, \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043d\u0438\u043a\u0430\u043a \u043e\u0442\u043e\u0440\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u043c\u043e\u0433\u0443 :-). \u041d\u0443 \u0430 \u0440\u0430\u0437 \u043f\u043e\u0434\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0441\u043b\u0443\u0447\u0430\u0439, \u0442\u043e \u0437\u0430 \u043e\u0434\u043d\u043e \u0438 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u043e \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c. \u0418\u0442\u0430\u043a, \u043f\u043e\u0435\u0445\u0430\u043b\u0438\u2026<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h2>FreeDOCore \u2013 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u044f\u0434\u0440\u043e \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432 GoogleCode.<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/c41\/1b3\/5e7\/c411b35e7f38f631777120f31b51521f.png\" alt=\"Picture 3\"\/><\/p>\n<p>  <i>\u0421\u0430\u0439\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/i>: <a href=\"http:\/\/www.freedo.org\/\">http:\/\/www.freedo.org\/<\/a>.<\/p>\n<p>  <i>\u0420\u0435\u0432\u0438\u0437\u0438\u044f<\/i>: 8.<\/p>\n<p>  <i>\u0421\u043f\u0440\u0430\u0432\u043a\u0430<\/i>: \u043f\u0435\u0440\u0432\u044b\u0439 \u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0434\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435. <\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0438. <\/b> <\/p>\n<p>  <b>V523: The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. <\/b><\/p>\n<p>  <b>Line 673 \u2014 clio.cpp<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/daf\/8c2\/d3b\/daf8c2d3bb46a21a77810a786e73b6ef.png\" alt=\"Picture 12\"\/><\/p>\n<p>  \u0422\u0430\u043a\u0443\u044e \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0434\u0430\u0436\u0435 \u0437\u0430 Warning \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442:  <\/p>\n<pre><code class=\"cpp\">if((cregs[0x404])&amp;0x200) {   ptr=0;   while(len&gt;=0)   {     b3=_xbus_GetDataFIFO();                     ...   }   cregs[0x400]|=0x80; } else {   ptr=0;   while(len&gt;=0)   {     b3=_xbus_GetDataFIFO();                     ...   }   cregs[0x400]|=0x80; }<\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u043d\u0438\u0439 \u043a\u043e\u0434, \u043d\u043e \u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438, \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b XBUS \u0434\u0432\u0443\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439, \u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u043f\u0430\u043a\u0442-\u0434\u0438\u0441\u043a\u043e\u0432, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u0440\u0443\u0431\u043e\u0439 \u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 \u0434\u043b\u044f \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u0438\u0433\u0440 \u2013 \u0430 \u0432\u0434\u0440\u0443\u0433 \u043a\u0430\u043a\u043e\u0439 \u0438\u0437 \u043d\u0438\u0445 \u0432\u0437\u0431\u0440\u0435\u0434\u0435\u0442 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0440\u043e\u0436\u0435\u0447\u044c \u0431\u043e\u043b\u0432\u0430\u043d\u043a\u0443?! \u0410 \u0435\u0441\u043b\u0438 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e, \u0442\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 XBUS \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u043f\u043e\u0440\u0447\u0430 \u043f\u0430\u043c\u044f\u0442\u0438, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432 DMA \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0445, \u043d\u0443 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u043c \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0440\u0430\u0440\u0438\u0442\u0435\u0442, \u043a\u0430\u043a FZ-EM256 3DO Memory Unit.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f. <\/b> <\/p>\n<p>  <b>V614: Potentially uninitialized variable &#8216;val&#8217; used. <\/b><\/p>\n<p>  <b>Line 803 \u2014 clio.cpp<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/e58\/445\/f6c\/e58445f6c4dfaac17b5d487a1e886117.png\" alt=\"Picture 13\"\/><\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u044d\u0442\u043e \u0435\u0440\u0443\u043d\u0434\u0430, \u043d\u043e \u0432\u0434\u0440\u0443\u0433 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043e \u043f\u0440\u0438\u0432\u0438\u0434\u0435\u043d\u0438\u044f\u0445 \u0432 FIFO\u2026  <\/p>\n<pre><code class=\"cpp\">unsigned short  __fastcall _clio_EIFIFO(unsigned short channel) {   unsigned int val,base,mask;   ...   if(FIFOI[channel].StartAdr!=0)\/\/channel enabled   {     ...   }   return val; }<\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432 \u0440\u044f\u0434\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <b><i>val <\/i><\/b> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f. \u0412 \u0442\u0435\u043e\u0440\u0438\u0438 FIFO DSP \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u043f\u043e\u0441\u043b\u0435 \u043e\u043f\u0443\u0441\u0442\u043e\u0448\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0435 \u0438\u0437 \u043d\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u044d\u0434\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u0437\u0440\u0430\u043a\u0430. \u0418 \u0445\u043e\u0442\u044f \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0443\u0441\u0442\u043e\u0433\u043e FIFO \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b, \u043d\u043e \u043a\u0442\u043e \u0437\u043d\u0430\u0435\u0442, \u0432\u0434\u0440\u0443\u0433 \u043f\u043e\u0441\u043b\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u0438\u0433\u0440\u0430?<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e \u0434\u0432\u0435 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b\u0445 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043e\u0448\u0438\u0431\u043a\u0438, \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u0443\u043c\u0430\u043b \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435.<\/p>\n<h2>FourDO \u2013 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u044f\u0434\u0440\u043e \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 SourceForge<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/e1d\/a95\/3f0\/e1da953f0f186ca7285b0f3ff8c78f5e.png\" alt=\"Picture 17\"\/><\/p>\n<p>  <i>\u0421\u0430\u0439\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/i>: <a href=\"http:\/\/www.fourdo.com\/\">http:\/\/www.fourdo.com\/<\/a>.<\/p>\n<p>  <i>\u0420\u0435\u0432\u0438\u0437\u0438\u044f<\/i>: 387.<\/p>\n<p>  <i>\u0421\u043f\u0440\u0430\u0432\u043a\u0430<\/i>: \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0436\u0438\u043b \u0434\u0432\u0435 \u0436\u0438\u0437\u043d\u0438, \u043f\u0435\u0440\u0432\u0430\u044f \u2013 \u043a\u043e\u0433\u0434\u0430 \u0430\u0432\u0442\u043e\u0440\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0441 \u043d\u0443\u043b\u044f, \u043d\u043e \u0443\u0432\u044b \u043f\u0430\u0446\u0438\u0435\u043d\u0442 \u0432\u043f\u0430\u043b \u0432 \u043a\u043e\u043c\u0443, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u043e\u0432 FreeDO, \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0432\u0442\u043e\u0440\u0430\u044f \u0436\u0438\u0437\u043d\u044c, \u0443\u0436\u0435 \u0441 \u043d\u043e\u0432\u044b\u043c\u0438 \u043e\u0440\u0433\u0430\u043d\u0430\u043c\u0438. \u0418\u0442\u0430\u043a, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438\u043c\u043f\u043b\u0430\u043d\u0442\u0430\u0442\u044b\u2026<\/p>\n<p>  <b>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f, \u043d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0448\u0438\u0431\u043a\u0430.<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/90c\/7c2\/11c\/90c7c211c3548da18cff5a410e8d1adf.png\" alt=\"Picture 4\"\/><\/p>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u0445\u043e\u0447\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u044f\u0434\u0440\u0435 (V614: Potentially uninitialized variable &#8216;val&#8217; used. Line 803 \u2014 clio.cpp), \u0441 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u0442\u0430\u043c \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u0431\u0435\u0437 \u043b\u0438\u0448\u043d\u0438\u0445 (\u0438\u043b\u0438 \u0442\u0430\u043a\u0438 \u0441 \u043b\u0438\u0448\u043d\u0438\u043c\u0438?) \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043e\u0432:  <\/p>\n<pre><code class=\"cpp\">unsigned short  __fastcall _clio_EIFIFO(unsigned short channel) {   unsigned int val,base,mask;    base=0x400+(channel*16);   mask=1&lt;&lt;channel;    if(FIFOI[channel].StartAdr!=0)   {     ...   }   else   {     val=0;     \/\/ JMK SEZ: What is this?      \/\/ It was commented out along with this whole &quot;else&quot; block,     \/\/ but I had to bring this else block back from the dead     \/\/ in order to initialize val appropriately.   }    return val; }<\/code><\/pre>\n<p>  \u0410 \u0437\u0440\u044f \u0440\u0430\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c! \u0418\u0441\u0442\u0438\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u043d\u0435\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0439, \u0437\u0430\u0442\u043e \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u0441\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u0438 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u043d\u0438\u043a\u0442\u043e \u0431\u044b \u043c\u043e\u0433 \u0431\u043e\u043b\u044c\u0448\u0435 \u0438 \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u044b\u043b\u043e \u0431\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b><i>val <\/i><\/b> \u043a\u0430\u043a <b><i>static<\/i><\/b> \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u043b\u0435\u043c, \u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u2013 \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0432\u043d\u0435\u0441\u0442\u0438 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0439, \u043d\u0443 \u0430 \u0431\u043b\u043e\u043a <b><i>else <\/i><\/b> \u2013 \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043c\u0443\u0449\u0430\u043b.<\/p>\n<p>  <b>\u041d\u0435\u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. <\/b> <\/p>\n<p>  <b>V523: The &#8216;then&#8217; statement is equivalent to the &#8216;else&#8217; statement. <\/b><\/p>\n<p>  <b>Line 673 \u2014 clio.cpp<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/511\/135\/59c\/51113559c9ffb5c6965642addb2af58d.png\" alt=\"Picture 19\"\/><\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043d\u0435 \u0441\u0442\u0443\u043f\u0430\u043b\u0430 \u043d\u043e\u0433\u0430 \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044f\u00bb \u2013 \u0432\u0441\u0435 \u043a\u0430\u043a \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435. \u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0432 \u0442\u0435\u043c\u0435, \u00ab\u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c\u00bb \u2014 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0430\u0432\u0442\u043e\u0440\u043e\u0432 FourDO \u2013 \u0412\u0438\u043a\u0442\u043e\u0440 (\u0443\u0436 \u043d\u0435 \u0437\u043d\u0430\u044e, \u0435\u0433\u043e \u044d\u0442\u043e \u0438\u043c\u044f \u0438\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e\u0442 \u0435\u0449\u0435 \u0428\u0442\u0438\u0440\u043b\u0438\u0446 ), \u043e\u043d \u0436\u0435 \u0430\u0432\u0442\u043e\u0440 3DOPlay, \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043a\u0430 FreeDO, \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043d\u0435\u043c \u0442\u0435 \u0436\u0435 \u0447\u0442\u043e \u0438 \u0432 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0435. \u0421 3DOPlay \u0431\u044b\u043b\u0430 \u0437\u0430\u0431\u0430\u0432\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f: \u0412\u0438\u043a\u0442\u043e\u0440 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0442\u0440\u043e\u043b\u043b\u0438\u0442\u044c \u0438 \u0441\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u043e\u043d \u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u042d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 3DO, \u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 FreeDO \u044f\u043a\u043e\u0431\u044b \u0443\u043a\u0440\u0430\u043b\u0438 \u0443 \u043d\u0435\u0433\u043e \u043a\u043e\u0434. \u041a \u0432\u0435\u043b\u0438\u043a\u043e\u043c\u0443 \u043c\u043e\u0435\u043c\u0443 \u0441\u0442\u044b\u0434\u0443, \u044f \u043a\u0430\u043a \u0441\u043e\u0430\u0432\u0442\u043e\u0440 FreeDO, \u043d\u0435 \u0441\u043c\u043e\u0433 \u043f\u0440\u043e\u0439\u0442\u0438 \u043c\u0438\u043c\u043e \u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043e\u0435\u0432\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u0445 \u043f\u0440\u043e\u0442\u0438\u0432 \u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 3DOPlay \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043d\u0430\u0434\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043d\u043e \u043a\u0442\u043e-\u0442\u043e \u043b\u044f\u043f\u043d\u0443\u043b \u2014 \u0442\u0440\u0438 \u0434\u0443\u043f\u043b\u0430 \u0438 \u043f\u043e\u043d\u0435\u0441\u043b\u0430\u0441\u044c\u2026 \u0412 \u0438\u0442\u043e\u0433\u0435 \u0412\u0438\u043a\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 FourDO, \u0438 \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0430\u0442\u044c \u0434\u043e\u043b\u0436\u043d\u043e\u0435, \u043e\u043d \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439, \u043a\u0442\u043e \u0445\u043e\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO, \u043f\u043e\u043c\u0438\u043c\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u0432 \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430. <\/p>\n<p>  <b>\u041f\u043e\u043a\u0430 \u0435\u0449\u0435 \u043d\u0435 \u043e\u0448\u0438\u0431\u043a\u0430.<\/b> <\/p>\n<p>  <b>V550: An odd precise comparison: Rez2T != 0. It&#8217;s probably better to use a comparison with defined precision: fabs(A \u2014 B) &gt; Epsilon. <\/b><\/p>\n<p>  <b>Line 778 \u2013 madam.cpp<\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/12d\/2c9\/feb\/12d2c9feb6f109a81cfc9dd869694775.png\" alt=\"Picture 20\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u0435\u043d, \u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0443\u044e \u043e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u043e\u0441\u0442\u044c.  <\/p>\n<pre><code class=\"cpp\">static double Rez0T,Rez1T,Rez2T,Rez3T; ... Rez2T=(signed int)((M20*V0+M21*V1+M22*V2)\/65536.0); if(Rez2T!=0) M=Nfrac16\/(double)Rez2T; else M=Nfrac16;<\/code><\/pre>\n<p>  \u0412 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 <b><i>Rez2T<\/i><\/b> \u0438\u043c\u0435\u043b \u0442\u0438\u043f <b><i>int<\/i><\/b>, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u044b \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439 \u043f\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0438\u043f\u043e\u0432, \u0438\u0437\u0431\u0430\u0432\u0438\u043b\u0438\u0441\u044c, \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043a\u0442\u043e-\u0442\u043e \u0440\u0435\u0448\u0438\u0442 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a \u0442\u0438\u043f\u0443 <b><i>signed int<\/i><\/b> \u2013 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0440\u0438\u0441\u043a \u0441\u043b\u043e\u0432\u0438\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 <b><i>Nfrac16<\/i><\/b> \u043d\u0430 <b><i>Rez2T<\/i><\/b>.<\/p>\n<p>  \u0418 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u043a\u0443\u0441\u043e\u0447\u0435\u043a \u043a\u043e\u0434\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u0443\u044e \u043e\u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b FourDO:  <\/p>\n<pre><code class=\"cpp\">void __fastcall _qrz_PushARMCycles(unsigned int clks) {     uint32 arm,cnt;     int timers=21000000; \/\/default     int sp=0;     if(sdf&gt;0) sdf--;     if(sf&gt;0) sf--;     if(unknownflag11&gt;0)unknownflag11--;     if(ARM_CLOCK&lt;0x5F5E10)ARM_CLOCK=0x5F5E10;     if(ARM_CLOCK&gt;0x2FAF080)ARM_CLOCK=0x2FAF080;     if(speedfixes&gt;0&amp;&amp;speedfixes&lt;0x186A1)        {\/*sp=0x2DC6C0;*\/ speedfixes--;}     else if(speedfixes&gt;0x186A1&amp;&amp;speedfixes&lt;0x30D41)       {\/*if(sdf==0)sp=0x4C4B40; *\/speedfixes--;}     else if(speedfixes&lt;0) {sp=0x3D0900; speedfixes++;}     else if(speedfixes&gt;0x30D41) {\/*sp=0x249F00;*\/ speedfixes--;}     else if(speedfixes==0x30D41||speedfixes==0x186A1) speedfixes=0;     if((fixmode&amp;FIX_BIT_TIMING_2)&amp;&amp;sf&lt;=2500000)        {sp=0; timers=21000000; if(sf==0)sp=-(0x1C9C380-ARM_CLOCK);}     if((fixmode&amp;FIX_BIT_TIMING_1)\/*&amp;&amp;jw&gt;0*\/&amp;&amp;sf&lt;=1500000)       {\/*jw--;*\/timers=1000000;sp=-1000000;}     if((fixmode&amp;FIX_BIT_TIMING_4)\/*&amp;&amp;jw&gt;0*\/)       {\/*jw--;*\/timers=1000000;sp=-1000000;}     if((fixmode&amp;FIX_BIT_TIMING_3)&amp;&amp;(sf&gt;0&amp;&amp;sf&lt;=100000)\/*&amp;&amp;jw&gt;0*\/)       {\/*jw--;*\/timers=900000;}     if((fixmode&amp;FIX_BIT_TIMING_5)&amp;&amp;sf==0\/*&amp;&amp;jw&gt;0*\/)       {\/*jw--;*\/timers=1000000;}     if((fixmode&amp;FIX_BIT_TIMING_6)\/*&amp;&amp;jw&gt;0*\/)       {\/*jw--;*\/timers=1000000; if(sf&lt;=80000)sp=-23000000;}     if(fixmode&amp;FIX_BIT_TIMING_7){sp=-3000000; timers=21000000;}     if((sf&gt;0x186A0&amp;&amp;!(fixmode&amp;FIX_BIT_TIMING_2))||        ((fixmode&amp;FIX_BIT_TIMING_2)&amp;&amp;sf&gt;2500000))          sp=-(12200000-ARM_CLOCK);     if((ARM_CLOCK-sp)&lt;0x2DC6C0)sp=-(0x2DC6C0-ARM_CLOCK);     if((ARM_CLOCK-sp)!=THE_ARM_CLOCK)     { THE_ARM_CLOCK=(ARM_CLOCK-sp);         io_interface(EXT_ARM_SYNC,(void*)THE_ARM_CLOCK);          \/\/fix for working with 4do     }     arm=(clks&lt;&lt;24)\/(ARM_CLOCK-sp);     qrz_AccARM+=arm*(ARM_CLOCK-sp);     if( (qrz_AccARM&gt;&gt;24) != clks )     {         arm++;         qrz_AccARM+=ARM_CLOCK;         qrz_AccARM&amp;=0xffffff;     }     qrz_AccDSP+=arm*SND_CLOCK;     qrz_AccVDL+=arm*(VDL_CLOCK);     if(_clio_GetTimerDelay())qrz_TCount+=arm*((timers)\/       (_clio_GetTimerDelay())); } <\/code><\/pre>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u043d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0437\u0434\u0440\u0430\u0432\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430, \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e (\u0447\u0442\u043e \u00ab\u044d\u0442\u043e\u00bb \u044f \u043c\u043e\u0433\u0443 \u043b\u0438\u0448\u044c \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f) \u043f\u0440\u0438 \u0443\u0447\u0435\u0442\u0435 \u0442\u0430\u043a\u0442\u043e\u0432 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u2013 \u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u0435, \u043d\u0438\u0436\u0435 \u043a\u043e\u0434 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430:  <\/p>\n<pre><code class=\"cpp\">void __fastcall _qrz_PushARMCycles(unsigned int clks) {  uint32 arm;         arm=(clks&lt;&lt;24)\/ARM_CLOCK;         qrz_AccARM+=arm*ARM_CLOCK;         if( (qrz_AccARM&gt;&gt;24) != clks )         {                 arm++;                 qrz_AccARM+=ARM_CLOCK;                 qrz_AccARM&amp;=0xffffff;         }         qrz_AccDSP+=arm*SND_CLOCK;         qrz_AccVDL+=arm*(VDL_CLOCK);         if(_clio_GetTimerDelay())             qrz_TCount+=arm*((__temporalfixes?12500000:25000000)\/                (_clio_GetTimerDelay())); }<\/code><\/pre>\n<p>  \u0412 \u0446\u0435\u043b\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0430\u0446\u0438\u0435\u043d\u0442 \u043d\u0438 \u0436\u0438\u0432, \u043d\u0438 \u043c\u0435\u0440\u0442\u0432, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0432 \u044f\u0434\u0440\u0435 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u043c\u0430\u043b\u043e, \u043d\u0435 \u0432\u0441\u0435 \u0432 \u043b\u0443\u0447\u0448\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443, \u0434\u0430 \u0438 \u043d\u0435\u0442 \u0438\u0445 \u0443\u0436\u0435 \u0431\u043e\u043b\u0435\u0435 \u0433\u043e\u0434\u0430, \u0441\u0443\u0434\u044f \u043f\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044e.<\/p>\n<h2>Phoenix Emu-Project \u2013 \u043d\u043e\u0432\u043e\u043c\u0443 \u044f\u0434\u0440\u0443 \u2013 \u043d\u043e\u0432\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438.<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/64b\/515\/968\/64b515968db182977be03d4063eac7b6.png\" alt=\"Picture 5\"\/><\/p>\n<p>  <i>\u0421\u0430\u0439\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/i>: <a href=\"http:\/\/www.arts-union.ru\">http:\/\/www.arts-union.ru<\/a> <\/p>\n<p>  <i>\u0412\u0435\u0440\u0441\u0438\u044f<\/i>: 1.7 <\/p>\n<p>  <i>\u0421\u043f\u0440\u0430\u0432\u043a\u0430<\/i>: \u0437\u0430\u043d\u043e\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 3DO, \u0441 \u043c\u0430\u043d\u0438\u0430\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0446\u0435\u043b\u044c\u044e \u0434\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO \u0434\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430, \u0445\u043e\u0442\u044f \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0441\u044f \u043c\u043d\u043e\u0439 \u043a\u0430\u043a \u043c\u0443\u043b\u044c\u0442\u0438\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u043a\u043e\u0434\u0430, \u043d\u043e \u043f\u043e\u043a\u0430 \u0442\u043e\u043b\u044c\u043a\u043e 3DO. <\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 \u2013 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u044b \u043e\u0431\u043b\u0435\u0437\u043b\u0438! <\/b> <\/p>\n<p>  <b>V501: There are identical sub-expressions to the left and to the right of the &#8216;!=&#8217; operator: val.flags != val.flags. <\/b><\/p>\n<p>  <b>Line 207 \u2014 gfx_celengine.h <\/b><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/75a\/a65\/35f\/75aa6535f082b197a9bd36b5afc47225.png\" alt=\"Picture 7\"\/>  <\/p>\n<pre><code class=\"cpp\">struct gfxCelTexturePDECAttrib {     uint32 pre0;     uint32 flags;      int plutcount;     uint16 plut[32];      bool operator==(const gfxCelTexturePDECAttrib &amp;val) const     {         if(val.pre0!=pre0)return false;         if(val.flags!=val.flags)return false;         if(val.plutcount!=plutcount)return false;         for(int i=0;i&lt;val.plutcount;i++)         {             if(val.plut[i]!=plut[i])return false;         }         return true;     } };<\/code><\/pre>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430, \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u0430\u044f \u043f\u043e \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0449\u0430\u044f \u043a \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u043d\u044b\u043c \u0434\u0435\u0444\u0435\u043a\u0442\u0430\u043c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0433\u0440\u044b, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0435\u0441\u043b\u0438 \u0444\u043b\u0430\u0433\u0438 CEL \u0443 \u0442\u0435\u043a\u0441\u0442\u0443\u0440 \u0432 \u043a\u044d\u0448\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u0430 \u044d\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0435\u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u043c, \u0438 \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u043d\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b, \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0448\u0435\u0439\u0434\u0435\u0440 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u044b. \u041d\u0438\u0436\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442:  <\/p>\n<pre><code class=\"cpp\">if(val.flags!=flags)return false; <\/code><\/pre>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 \u2014 \u043c\u0443\u0441\u043e\u0440 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435! <\/b> <\/p>\n<p>  <b>V579: The memset function receives the pointer and its size as arguments. It is possibly a mistake. Inspect the third argument. <\/b><\/p>\n<p>  <b>Line 36 \u2014 vdlp_3do.cpp<\/b><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/db0\/f5c\/ebc\/db0f5cebca98fd4a33e3d283b50349f4.png\" alt=\"Picture 22\"\/><br \/>  \u0422\u0443\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u2013 VDLP \u043f\u0430\u043b \u0436\u0435\u0440\u0442\u0432\u043e\u0439 \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0439 \u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438\u0433\u0440 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 PAL. \u0420\u0430\u043d\u044c\u0448\u0435 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e NTSC \u0438\u0433\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0434\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e, \u0438 \u0431\u0443\u0444\u0435\u0440 \u043a\u0430\u0434\u0440\u0430 \u0438\u043c\u0435\u043b \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 320 \u043d\u0430 240 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u0431\u0435\u0437 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.  <\/p>\n<pre><code class=\"cpp\"> screen=new uint8[384*288*3*4]; memset(screen,0,sizeof(screen));  <\/code><\/pre>\n<p>  \u0418 \u0447\u0442\u043e\u0431\u044b \u043e\u0448\u0438\u0431\u043a\u0430 \u0443\u0448\u043b\u0430 \u0441 \u0433\u043b\u0430\u0437 \u0434\u043e\u043b\u043e\u0439 (\u0432 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0438\u0431\u043e \u043f\u0435\u0440\u0432\u044b\u0439, \u0435\u0434\u0432\u0430 \u0443\u043b\u043e\u0432\u0438\u043c\u044b\u0439 \u043a\u0430\u0434\u0440 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0438\u0433\u0440\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d \u043c\u0443\u0441\u043e\u0440\u043e\u043c), \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"cpp\"> memset(screen,0,sizeof(uint8)*384*288*3*4); <\/code><\/pre>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0430 \u2013 \u0430 \u0434\u0438\u0441\u043a\u0430-\u0442\u043e \u043d\u0435\u0442! <\/b> <\/p>\n<p>  <b>V595: The &#8216;adapt&#8217; pointer was utilized before it was verified against nullptr. Check lines: 375, 376.<\/b><\/p>\n<p>  <b>Line 375 \u2014 dumplibrary.cpp<\/b><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/8ef\/04f\/c97\/8ef04fc97ce2cf396994e55bda16632e.png\" alt=\"Picture 21\"\/><br \/>  \u0418 \u0441\u043d\u043e\u0432\u0430 \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u2026 \u0414\u043e \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0443 \u043d\u0430\u0434\u043e \u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438. \u0418\u043d\u0430\u0447\u0435 \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043d\u0443\u0436\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u0438\u0433\u0440.  <\/p>\n<pre><code class=\"cpp\"> dumpAdapter *adapt=createDumpAdapter(j,   inf-&gt;Parent()-&gt;Attribute(&quot;attach&quot;).toString()); adapt-&gt;SetSign(signs[names[i]]); if(!adapt)break;  <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0442\u0443\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c? \u041c\u043d\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0439 \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0434\u044b\u0445\u0430\u0442\u044c \u043f\u043e \u0432\u0435\u0447\u0435\u0440\u0430\u043c \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u043e\u0432 :-).<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>   \u0418\u0442\u0430\u043a, \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043e\u043f\u044b\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0434\u0430, \u0432\u0435\u0449\u044c \u043d\u0435\u0441\u043e\u043c\u043d\u0435\u043d\u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430\u044f \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0435\u043c\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043d\u0435\u0440\u0432\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432. \u0414\u043b\u044f \u044d\u043c\u0443-\u0441\u0446\u0435\u043d\u044b \u0446\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u044b\u0441\u043e\u043a\u0430, \u043a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0434\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c Hex-Ray \u0434\u043b\u044f ARM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0433 \u0431\u044b \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u044e 3DO \u043d\u0430 \u043c\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u043e\u0432 \u0432\u043f\u0435\u0440\u0435\u0434, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 Hex-Ray, \u0443 PVS-Studio \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 \u2013 CppCat (<a href=\"http:\/\/www.cppcat.com\">http:\/\/www.cppcat.com<\/a>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0442\u0430\u043a \u043a\u0440\u0443\u0442, \u043d\u043e \u0434\u0435\u043b\u043e \u0441\u0432\u043e\u0435 \u0437\u043d\u0430\u0435\u0442.      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/pvs-studio\/blog\/218613\/\"> http:\/\/habrahabr.ru\/company\/pvs-studio\/blog\/218613\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/420\/fa9\/602\/420fa96027016bc0d3c11cffb604adf3.png\" alt=\"Picture 2\"\/><br \/>  \u0417\u0430\u0440\u0435\u043a\u0430\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO \u043a\u043e\u043d\u0441\u043e\u043b\u0438, \u043a\u0430\u044e\u0441\u044c. \u041d\u043e \u0442\u0443\u0442 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0430\u043a\u043e\u0439 \u044d\u043a\u0437\u043e\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0448\u0442\u0443\u043a\u043e\u0439 \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <a href=\"http:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio<\/a>. \u041f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430 \u0447\u0435\u043c \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0441\u0442\u0430\u043b \u043c\u043e\u0439 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 3DO (Phoenix Project). \u0412 \u043d\u0430\u0447\u0430\u043b\u0435 90-\u0445 \u0431\u044b\u043b\u0430 \u0442\u0430\u043a\u0430\u044f \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430, \u043f\u0435\u0440\u0432\u0430\u044f 32-\u0445 \u0431\u0438\u0442\u043d\u0430\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441 CD-\u043f\u0440\u0438\u0432\u043e\u0434\u043e\u043c, \u043f\u043e\u043c\u043d\u044e \u043d\u0430\u043c \u0441 \u0431\u0440\u0430\u0442\u043e\u043c \u0435\u0435 \u043e\u0442\u0435\u0446 \u0438\u0437 \u041c\u043e\u0441\u043a\u0432\u044b \u043f\u0440\u0438\u0432\u0435\u0437, \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043d\u0438\u043a\u0430\u043a \u043e\u0442\u043e\u0440\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u043c\u043e\u0433\u0443 :-). \u041d\u0443 \u0430 \u0440\u0430\u0437 \u043f\u043e\u0434\u0432\u0435\u0440\u043d\u0443\u043b\u0441\u044f \u0441\u043b\u0443\u0447\u0430\u0439, \u0442\u043e \u0437\u0430 \u043e\u0434\u043d\u043e \u0438 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u043e \u044d\u043c\u0443\u043b\u044f\u0446\u0438\u0438 3DO \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c. \u0418\u0442\u0430\u043a, \u043f\u043e\u0435\u0445\u0430\u043b\u0438\u2026  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-218613","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/218613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218613"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/218613\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}