{"id":1228,"date":"2015-11-06T22:45:38","date_gmt":"2015-11-06T22:45:38","guid":{"rendered":"http:\/\/www.sydneysmith.com\/wordpress\/?p=1228"},"modified":"2017-05-14T01:40:52","modified_gmt":"2017-05-14T01:40:52","slug":"hp67-internals-s-9-and-12","status":"publish","type":"post","link":"https:\/\/www.sydneysmith.com\/wordpress\/1228\/hp67-internals-s-9-and-12\/","title":{"rendered":"HP67 Internals &#8211; S 9 and 12"},"content":{"rendered":"<p>The HP67 internal flags S 9 and S 12 are used during keyboard data entry. The meanings for S9,S12 are:<!--more--><\/p>\n<p>0,0 &#8211; Overwrite X register.<br \/>\ne.g. CLx or ENTER was just pressed.<\/p>\n<p>1,0 &#8211; Lift stack.<br \/>\nDigit (or &#8220;.&#8221; or EEX) causes Z to T, Y to Z and X to Y; then what you key in overwrites X. This is what happens after you have calculated something.<br \/>\ne.g. 4 ENTER 5 + (&#8220;9.00&#8243; displayed) 6 (Y=9.00 X=&#8221;6.&#8221;).<\/p>\n<p>1,1 &#8211; Input digit.<br \/>\nAfter you press the first digit (or &#8220;.&#8221; or EEX ?) S 12 gets set to 1. From then on, digits get added to the RHS as you key them in.<\/p>\n<table>\n<tr>\n<td>CLx<\/td>\n<td>&#8220;0.00&#8221; displayed, S 9 = 0, S 12 = 0<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>&#8220;1.&#8221; displayed, S 9 = 1, S 12 = 1<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>&#8220;12.&#8221; displayed, S 9 = 1, S 12 = 1<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>&#8220;123.&#8221; displayed, S 9 = 1, S 12 = 1<\/td>\n<\/tr>\n<tr>\n<td>ENTER<\/td>\n<td>Y=123.00, X=123.00, &#8220;123.00&#8221; displayed, S 9 = 0, S 12 = 0<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>&#8220;4.&#8221; displayed, S 9 = 1, S 12 = 1<\/td>\n<\/tr>\n<tr>\n<td>+<\/td>\n<td>&#8220;127.00&#8221; displayed, S 9 = 1, S 12 = 0<\/td>\n<\/tr>\n<\/table>\n<p>You can see this working in the hp67u emulator. Simply press a button then menu Advanced and look at the &#8220;S=&#8230;&#8221; item. you&#8217;ll see &#8220;.9..c.&#8221; if S 9 and S 12 are 1,<br \/>\nyou&#8217;ll see &#8220;.9&#8230;.&#8221; if just S 9 is 1, or<br \/>\nyou&#8217;ll see &#8220;&#8230;&#8230;&#8221; if both are 0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HP67 internal flags S 9 and S 12 are used during keyboard data entry. The meanings for S9,S12 are:<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,5,3],"tags":[33],"_links":{"self":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1228"}],"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=1228"}],"version-history":[{"count":3,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":1231,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1228\/revisions\/1231"}],"wp:attachment":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}