{"id":1592,"date":"2017-05-17T21:06:49","date_gmt":"2017-05-17T21:06:49","guid":{"rendered":"http:\/\/www.sydneysmith.com\/wordpress\/?p=1592"},"modified":"2018-02-25T10:41:15","modified_gmt":"2018-02-25T10:41:15","slug":"hp-65-diagnostic-programs","status":"publish","type":"post","link":"https:\/\/www.sydneysmith.com\/wordpress\/1592\/hp-65-diagnostic-programs\/","title":{"rendered":"HP-65 Diagnostic Programs"},"content":{"rendered":"<p>The HP-65 calculator came with a &#8220;Standard Pac&#8221; of programs. That was a set of ready made solutions for some common problems. The idea was probably: if the calculator is programmable, it ought to come with some programs to show that off. It also effectively provided training material that created a whole lot of new programmers. It was a very good idea in many ways.<!--more--><\/p>\n<p>The argument has been made that these were published without copyright notices and in an era where copyright protection required authors to include notices. I&#8217;m not a lawyer and I&#8217;m making no claims one way or the other. The programs in the HP released &#8220;Pac&#8221;s were written by HP.<\/p>\n<p>As with most software these days, you should assess its suitability for your needs. The <a href=\"http:\/\/www.sydneysmith.com\/wordpress\/1196\/disclaimer\/\">disclaimer<\/a> applies to any programs on this site written in calculator languages, as well as normal computer languages. Please don&#8217;t blame HP if I&#8217;ve typed something incorrectly or if it was something they fixed long ago and I missed the fix.<\/p>\n<p>Calculator programs on this site are simply a convenience to save you typing them in by hand.<\/p>\n<h2>Diagnostics<\/h2>\n<p>The Standard Pac came with two &#8220;Diagnostic Program&#8221;s. These checked out the functioning of the calculator and reported okay or failure. I have even seen an internal servicing bulletin at one stage where the first step taken by HP technicians was to run the diagnostic programs.<\/p>\n<p>The idea behind the programs is fairly standard these days: do something, get a result, compare that to the expected result, announce success or failure. In 100 steps or less, it isn&#8217;t always as clear as that sounds but they do follow that principle.<\/p>\n<p>You can see the programs at:<br \/>\n<a href=\"http:\/\/www.sydneysmith.com\/products\/gss-hp65\/downloads\/programs\/std18-diagnostic1.65.txt\" target=\"_blank\">std18-diagnostic1.65.txt<\/a><br \/>\n<a href=\"http:\/\/www.sydneysmith.com\/products\/gss-hp65\/downloads\/programs\/std19-diagnostic2.65.txt\" target=\"_blank\">std19-diagnostic2.65.txt<\/a><\/p>\n<p>To use either program, load it, press RTN to ensure you are at step &#8220;00 00&#8221;, and press the [R\/S] key.<\/p>\n<p>(To load a program into my emulator, tap the display at the top of the emulator to bring up the menu, choose &#8220;Program&#8221;, tap in the text box, select all of the existing text and then paste the program over the top. Click &#8220;Back&#8221; twice and you&#8217;ll see a program card in the slot.)<\/p>\n<h2>Diagnostic 1<\/h2>\n<p>A successful result is all 8s in the display and minuses shown for the number and exponent. This actually tests the 7 segment display chips (and the components that run them).<\/p>\n<p>If the program gets an unexpected result, it stops and shows one of the following:<br \/>\n0 g x!=y<br \/>\n1 f TF1 with flag clear<br \/>\n2 f TF2 with flag clear<br \/>\n3 g x&lt;=y<br \/>\n4 f-1 TF1 with flag set<br \/>\n5 f-1 TF2 with flag set<br \/>\n6 g x=y<br \/>\n7 f-1 SF1<br \/>\n8 f-1 SF2<br \/>\n9 g x&gt;y<br \/>\n-1 DSZ<\/p>\n<h2>Diagnostic 2<\/h2>\n<p>This has the same successful output.<\/p>\n<p>The process for errors is a lot more complex as the user needs to SST through the program and manually compare results with expected values listed in the manual for the Pac.<\/p>\n<p>Given a lot more gets tested in this program and our 100 step limit, the need for more human involvement this time isn&#8217;t surprising.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HP-65 calculator came with a &#8220;Standard Pac&#8221; of programs. That was a set of ready made solutions for some common problems. The idea was probably: if the calculator is programmable, it ought to come with some programs to show that off. It also effectively provided training material that created a whole lot of new &hellip; <a href=\"https:\/\/www.sydneysmith.com\/wordpress\/1592\/hp-65-diagnostic-programs\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">HP-65 Diagnostic Programs<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,5,57],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1592"}],"collection":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1592"}],"version-history":[{"count":3,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1592\/revisions"}],"predecessor-version":[{"id":1596,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1592\/revisions\/1596"}],"wp:attachment":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}