{"id":212,"date":"2022-02-15T20:02:06","date_gmt":"2022-02-16T01:02:06","guid":{"rendered":"https:\/\/paulcarbone.com\/50days\/?p=212"},"modified":"2022-02-15T20:09:27","modified_gmt":"2022-02-16T01:09:27","slug":"day-18","status":"publish","type":"post","link":"https:\/\/paulcarbone.com\/50days\/2022\/02\/15\/day-18\/","title":{"rendered":"Day 18: User Input"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Yesterday we got a simple routine working that set a selected bit on a word using a few registers.  Lets see if we can select that bit using the command line. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>output a message prompting the user for the bit to set<\/li><li>read the input <\/li><li>convert the ascii character to a number &#8211; as simple as subtracting 30H or 48 from the register?  <\/li><li>use that number as the bit number (register c), and run set bit<\/li><li>go to 1 <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">WELL&#8230; IT DOESN&#8217;T WORK.  I can output the message, type a single character, then it locks up. not sure where it&#8217;s getting gobbed up &#8211; I&#8217;ve got a single character printing in the setbit routine and it doesn&#8217;t even get that far.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, that&#8217;s all for tonight. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday we got a simple routine working that set a selected bit on a word using a few registers. Lets see if we can select that bit using the command line. output a message prompting the user for the bit &hellip; <a href=\"https:\/\/paulcarbone.com\/50days\/2022\/02\/15\/day-18\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-blinkinglights"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":4,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/posts\/212\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulcarbone.com\/50days\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}