{"id":1101,"date":"2015-09-22T11:38:12","date_gmt":"2015-09-22T11:38:12","guid":{"rendered":"http:\/\/www.sydneysmith.com\/wordpress\/?p=1101"},"modified":"2017-04-25T13:58:14","modified_gmt":"2017-04-25T13:58:14","slug":"hp65-emulator-menu","status":"publish","type":"post","link":"https:\/\/www.sydneysmith.com\/wordpress\/1101\/hp65-emulator-menu\/","title":{"rendered":"The HP65 Emulator Menu"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.sydneysmith.com\/wordpress\/hp65\/\" target=\"_blank\">HP65 Emulator<\/a> has a number of extra functions available. You can access these from the menu and you can get to the menu by tapping the display.<\/p>\n<div>\n<img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-display1.png\" alt=\"hp65-display\" width=\"355\" height=\"130\" class=\"alignleft size-full wp-image-1108\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-display1.png 355w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-display1-300x110.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/>Click here on the emulator.<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<p>Then you&#8217;ll see the following:<br \/>\n<!--more--><\/p>\n<h2>Menu<\/h2>\n<div><img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-menu-172x300.png\" alt=\"hp65-menu\" width=\"172\" height=\"300\" class=\"alignleft size-medium wp-image-1110\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-menu-172x300.png 172w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-menu.png 357w\" sizes=\"(max-width: 172px) 100vw, 172px\" \/>As you can see, the options are: Stack, Data, Program, Advanced, Help, About, and Back.<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<h2>Back<\/h2>\n<p>Let&#8217;s get the easiest one out of the way first. &#8220;Back&#8221; takes you back to the calculator display.<\/p>\n<h2>Stack<\/h2>\n<p>&#8220;Stack&#8221; shows you what is in the calculator&#8217;s &#8220;stack&#8221; &#8211; the X, Y, Z and T registers; and in the &#8220;Last X&#8221; register. As explained in <a href=\"http:\/\/www.sydneysmith.com\/products\/gss-hp21\/run\/help\/stack.html\" target=\"_blank\">The Stack<\/a> (for the HP21 emulator), there are four stack registers which save intermediate results as you work through a calculation. With the real thing, you could &#8220;Roll Down&#8221; the X register to see the Y register, and again and again and again to see Z, T, and X once more. With the emulator, just tap the display for the menu then tap &#8220;Stack&#8221;. You&#8217;ll see something like:<br \/>\n<img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-stack-300x231.png\" alt=\"hp65-stack\" width=\"300\" height=\"231\" class=\"alignnone size-medium wp-image-1111\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-stack-300x231.png 300w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-stack.png 368w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2>Data<\/h2>\n<p>&#8220;Data&#8221; shows you what is stored in the data registers. The HP65 calculator has nine data registers. You can store numbers in registers 1 to 9 by pressing [STO] [1] through [STO] [9]. Later, when you want the number back just press the matching recall buttons ([RCL] [1] through [RCL] [9]). The &#8220;Data&#8221; menu option shows you all of the data registers at once. It looks like:<\/p>\n<div><a href=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-data.png\"><img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-data-171x300.png\" alt=\"hp65-data\" width=\"171\" height=\"300\" class=\"alignleft size-medium wp-image-1112\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-data-171x300.png 171w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-data.png 353w\" sizes=\"(max-width: 171px) 100vw, 171px\" \/><\/a>This shows you the register number and the content for each of the registers 1-9. However, there is a catch. It shows you using the calculator&#8217;s own internal format &#8211; binary coded decimal (BCD).<\/p>\n<p>It isn&#8217;t hard to understand especially if you understand <a href=\"http:\/\/www.sydneysmith.com\/products\/gss-hp21\/run\/help\/use.html\" target=\"_blank\">scientific notation<\/a>. The numbers are stored in scientific notation. There is a mantissa in the first 11 digits and an exponent in the last 3 digits. The actual number is (mantissa) * 10 to the power of (exponent).<\/p>\n<p>2 exponent 3 is 2 * 10^3 = 2 * 1000 = 2000.<\/p>\n<p>The first digit of the mantissa and of the exponent is the &#8220;sign&#8221;. If it starts with &#8220;0&#8221; it is a positive number. If it starts with &#8220;9&#8221; it is negative.<\/p>\n<p>Shown in register 01 is mantissa 01230000000, exponent 002.<br \/>\nThis is +1.23 * 10^+02 = 1.23 *10^2 = 1.23 * 100 = 123.<\/p>\n<div style=\"clear:both\"><\/div>\n<p>It isn&#8217;t the easiest thing to follow but it&#8217;ll make sense to you eventually. It does help show what&#8217;s going on inside the calculator.<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<h2>Program<\/h2>\n<p>Pressing &#8220;Program&#8221; shows you this:<\/p>\n<div><a href=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-1.png\"><img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-1-172x300.png\" alt=\"hp65-prog-1\" width=\"172\" height=\"300\" class=\"alignleft size-medium wp-image-1119\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-1-172x300.png 172w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-1.png 355w\" sizes=\"(max-width: 172px) 100vw, 172px\" \/><\/a><br \/>\nThis is a match to the format used in the HP67 emulator and that used for the &#8220;magnetic cards&#8221; in the HP65 and HP67 emulators.<br \/>\nThe first line says &#8220;PROG&#8221; and is followed by a number. This tells the emulator that the information gets loaded into the calculator&#8217;s program memory. This is rather obvious for a HP65 as it only loads programs from magnetic cards. However, the later model &#8211; the HP67 &#8211; allowed loading and saving DATA as well as PROGram information. If a card starts with PROG it will be loaded into HP65 program memory. The HP65 ignores any section starting with DATA.<\/p>\n<p>The number after &#8220;PROG&#8221; is important. It tells the emulator how many program lines follow. In most cases on the HP65 emulator this will be &#8220;100&#8221;. The HP65 is limited to 100 steps and the emulator follows this rule. You can&#8217;t change this number and load 200 program steps. You can however, use a number less than 100.<\/p>\n<p>After the number is the actual program steps. These are in keycode format (eg 31 for the [f] key &#8211; 3rd row, 1st column on the keyboard). Keycode format is not what the calculator uses internally but it is what it displays when you re in W\/PRGM mode. It is also what most HP65 program listings use. I chose this format to make it as easy to understand and use as possible. Internally, keycodes are converted to program codes by the calculator. (The details are given in <a href=\"http:\/\/www.sydneysmith.com\/wordpress\/1078\/hp65-program-codes\/\">HP65 Program Codes<\/a>.)<\/p>\n<p>The screen you see is read\/write. This means you can change the program and have your changes loaded back into the calculator&#8217;s program memory. The intent here is to allow you to copy and paste &#8220;magnetic cards&#8221; to normal text files if you like. Normally magnetic cards are stored within your browser&#8217;s &#8220;local storage&#8221; mechanism. This is very safe for web browsing; but cumbersome if you want to share a program or use one in a different browser. The Program menu option makes this easier for you.<\/p>\n<p>You can also copy and paste a HP65 program listing from any other website into the text box. The line numbers shown are for your convenience. They don&#8217;t have to be present when you paste something in.<\/p>\n<p>If you change a program, make sure the number of lines remains the same (or change it to the correct number).<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<h2>Program (Part 2)<\/h2>\n<p>If you scroll down further, you&#8217;ll see:<\/p>\n<div><a href=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-2.png\"><img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-2-172x300.png\" alt=\"hp65-prog-2\" width=\"172\" height=\"300\" class=\"alignleft size-medium wp-image-1120\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-2-172x300.png 172w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-prog-2.png 357w\" sizes=\"(max-width: 172px) 100vw, 172px\" \/><\/a><\/p>\n<p>The section after line 100 says &#8220;CARD&#8221; and has 6 lines.<\/p>\n<p>The first line is the card title. This gets written at the top of the mag card. If you had a real HP65 or HP67 with a card reader you&#8217;ll already know that after you&#8217;ve loaded the card you slide it in the slot above the card reader. That way the card sits above the [A] to [E] keys and labels them. The &#8220;Title&#8221; is the name of the program. An example is the old &#8220;Moon Lander&#8221; program.<\/p>\n<p>Leave a space after the colon (:) and then type in a program title.<\/p>\n<p>The next five lines are labelled &#8220;A:&#8221; through &#8220;E:&#8221;. These are labels for the matching keys. What you type here shows up above the relevant key when you slide the card into the top slot. To continue with the &#8220;Moon Lander&#8221; example, [A] was labelled &#8220;CNTRL&#8221; and [B] was labelled &#8220;RESTART&#8221;. In this case you&#8217;d use:<br \/>\nA: CNTRL<br \/>\nB: RESTART<br \/>\nand leave the others blank.<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<p>When you load the card into the calculator, it looks like:<\/p>\n<div><a href=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-card.png\"><img loading=\"lazy\" src=\"http:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-card-300x190.png\" alt=\"hp65-card\" width=\"300\" height=\"190\" class=\"alignleft size-medium wp-image-1123\" srcset=\"https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-card-300x190.png 300w, https:\/\/www.sydneysmith.com\/wordpress\/wp-content\/uploads\/2015\/09\/hp65-card.png 355w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nIn this case you can see that RESTART doesn&#8217;t quite fit. The writing on the real cards that were printed by HP was a little smaller than what I&#8217;ve used.<\/p>\n<div style=\"clear:both\"><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>There is another section after &#8220;CARD&#8221; called &#8220;HELP&#8221;. By default, it has only one line and the line is blank.<\/p>\n<p>If you want to include instructions for how to use your program and maybe more information about what the [A] to [E] keys do, you can add lines of text here. You can change the &#8220;1&#8221; to be as many lines as you need.<\/p>\n<p>Normally, when you choose &#8220;Help&#8221; from the menu, it takes you to the calculator&#8217;s help page on the website. However, if a mag card has been loaded and it has something in the HELP section, that information gets shown instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HP65 Emulator has a number of extra functions available. You can access these from the menu and you can get to the menu by tapping the display. Click here on the emulator. Then you&#8217;ll see the following:<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,5,47],"tags":[9],"_links":{"self":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1101"}],"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=1101"}],"version-history":[{"count":18,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1101\/revisions"}],"predecessor-version":[{"id":1130,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/posts\/1101\/revisions\/1130"}],"wp:attachment":[{"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sydneysmith.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}