{"id":1315,"date":"2015-11-29T11:24:46","date_gmt":"2015-11-29T11:24:46","guid":{"rendered":"http:\/\/www.sydneysmith.com\/wordpress\/?p=1315"},"modified":"2017-05-14T00:48:12","modified_gmt":"2017-05-14T00:48:12","slug":"hp65-flags","status":"publish","type":"post","link":"https:\/\/www.sydneysmith.com\/wordpress\/1315\/hp65-flags\/","title":{"rendered":"HP65 Flags"},"content":{"rendered":"<p>The HP-65 calculator has two flags and you can set, clear or test these in your programs. They allow you to remember choices or situations for later. Something happens. You use f SF 1 (or f SF 2) to remember it, and later you use f TF 1 (or f TF 2) to choose between two different courses of action.<\/p>\n<p>Where are the flags stored? How does it do all that? <!--more--><\/p>\n<p>The flags are stored in bits of the FS register.<br \/>\nFlag 1 is FS[4].<br \/>\nFlag 2 is FS[6].<\/p>\n<p>You can see this by checking (menu), Advanced, View State. If you use &#8220;f SF 1&#8221; FS=&#8230;.4&#8230; appears. If you use &#8220;f-1 SF 1&#8221; (i.e. clear flag 1) the &#8220;.4.&#8221; bit disappears.<\/p>\n<p>The same occurs for Flag 2 and FS=&#8230;&#8230;6.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HP-65 calculator has two flags and you can set, clear or test these in your programs. They allow you to remember choices or situations for later. Something happens. You use f SF 1 (or f SF 2) to remember it, and later you use f TF 1 (or f TF 2) to choose between &hellip; <a href=\"https:\/\/www.sydneysmith.com\/wordpress\/1315\/hp65-flags\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">HP65 Flags<\/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,39],"tags":[37],"_links":{"self":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1315"}],"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=1315"}],"version-history":[{"count":1,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1315\/revisions"}],"predecessor-version":[{"id":1316,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1315\/revisions\/1316"}],"wp:attachment":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}