{"id":9,"date":"2007-12-30T23:41:27","date_gmt":"2007-12-30T21:41:27","guid":{"rendered":"http:\/\/www.bkits.at\/weblog\/?page_id=9"},"modified":"2009-03-22T17:45:21","modified_gmt":"2009-03-22T15:45:21","slug":"programming","status":"publish","type":"page","link":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/","title":{"rendered":"Programming"},"content":{"rendered":"<p>The PC1403 basically supports the inbuilt BASIC programming language. Therefore it offers two modes: The programming mode, where the basic source code can be entered and the running mode, used for running and debugging programs.<\/p>\n<blockquote><p><strong>Tip: Saving RAM<\/strong><br \/>\nFor saving RAM space, you should always use tokens for the BASIC commands. They are accessible via SHIFT &#8211; key and only use two bytes instead of X bytes (depending on the commands length) if typed char by char.<\/p><\/blockquote>\n<p>You may find the most supported BASIC commands in the manual &#8211; most, but not all. Sharp forgot &#8211; or simply denied &#8211; to mention the most powerful commands, opening the doors to Assembler programming:<\/p>\n<blockquote><p><strong>Note: <span style=\"color: #ff0000;\">Keep attention!<\/span><\/strong><br \/>\nUsing the following commands with random parameters can end up in an inconsistent state, which needs the PC1403 to be reseted &#8211; all data in the RAM will get lost &#8211; save more, save often! (That might be the reason, why Sharp didn&#8217;t publish them in their manuals<img decoding=\"async\" src=\"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif\" alt=\"\" \/>)<\/p><\/blockquote>\n<h4>Peek and Poke<\/h4>\n<p>These two commands enable to set \/ get values to \/ from a specific memory address and are therefore quite powerful and your door to system programming.<\/p>\n<blockquote><p><code>PEEK(address)<\/code><br \/>\nReturns the 8 bit value, stored in the memory at address (16 bit, of course).<\/p>\n<p><code>POKE address, value1 [, valueX...]<\/code><br \/>\nStores the 8 bit value1 at the 16 bit memory address address. If a list of values is parsed, the address will be incremented automatically.<\/p><\/blockquote>\n<p>Peek and Poke already enhance the BASIC interpreter&#8217;s functionality enormously. For Assembler programming, you&#8217;ll need the Call command too:<\/p>\n<h4>Call<\/h4>\n<p>The call command can be used for calling an assembler program directly e.g. ROM functions.<\/p>\n<blockquote><p><code>CALL address<\/code><br \/>\nCalls executable code, starting at the 16 bit memory address address.<\/p><\/blockquote>\n<p>Finally, you now have the basic credentials to do all the nice coding stuff which takes advantage of the non default settings of your PC1403. For some source code samples, take a look at <a href=\"http:\/\/www.bkits.at\/weblog\/index.php?tag=SW-PC1403Source\">those articles<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PC1403 basically supports the inbuilt BASIC programming language. Therefore it offers two modes: The programming mode, where the basic source code can be entered and the running mode, used for running and debugging programs. Tip: Saving RAM For saving &hellip; <a href=\"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":7,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-9","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Programming - Berni&#039;s ~page V5 Weblog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Programming - Berni&#039;s ~page V5 Weblog\" \/>\n<meta property=\"og:description\" content=\"The PC1403 basically supports the inbuilt BASIC programming language. Therefore it offers two modes: The programming mode, where the basic source code can be entered and the running mode, used for running and debugging programs. Tip: Saving RAM For saving &hellip; Weiterlesen &rarr;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Berni&#039;s ~page V5 Weblog\" \/>\n<meta property=\"article:modified_time\" content=\"2009-03-22T15:45:21+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/\",\"url\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/\",\"name\":\"Programming - Berni&#039;s ~page V5 Weblog\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/#primaryimage\"},\"image\":{\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/wp-content\\\/plugins\\\/fckeditor_for_wordpress\\\/smiles\\\/msn\\\/wink_smile.gif\",\"datePublished\":\"2007-12-30T21:41:27+00:00\",\"dateModified\":\"2009-03-22T15:45:21+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/wp-content\\\/plugins\\\/fckeditor_for_wordpress\\\/smiles\\\/msn\\\/wink_smile.gif\",\"contentUrl\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/wp-content\\\/plugins\\\/fckeditor_for_wordpress\\\/smiles\\\/msn\\\/wink_smile.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/programming\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Sharp PC1403(H)\",\"item\":\"https:\\\/\\\/www.bkits.at\\\/weblog\\\/the-sharp-pc1403h\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Programming\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/#website\",\"url\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/\",\"name\":\"Berni&#039;s ~page V5 Weblog\",\"description\":\"The official weblog to Berni&#039;s ~page V5\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/www.bkits.at\\\/weblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Programming - Berni&#039;s ~page V5 Weblog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/","og_locale":"de_DE","og_type":"article","og_title":"Programming - Berni&#039;s ~page V5 Weblog","og_description":"The PC1403 basically supports the inbuilt BASIC programming language. Therefore it offers two modes: The programming mode, where the basic source code can be entered and the running mode, used for running and debugging programs. Tip: Saving RAM For saving &hellip; Weiterlesen &rarr;","og_url":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/","og_site_name":"Berni&#039;s ~page V5 Weblog","article_modified_time":"2009-03-22T15:45:21+00:00","og_image":[{"url":"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif","type":"","width":"","height":""}],"twitter_misc":{"Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/","url":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/","name":"Programming - Berni&#039;s ~page V5 Weblog","isPartOf":{"@id":"http:\/\/www.bkits.at\/weblog\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/#primaryimage"},"image":{"@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/#primaryimage"},"thumbnailUrl":"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif","datePublished":"2007-12-30T21:41:27+00:00","dateModified":"2009-03-22T15:45:21+00:00","breadcrumb":{"@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/#primaryimage","url":"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif","contentUrl":"http:\/\/www.bkits.at\/weblog\/wp-content\/plugins\/fckeditor_for_wordpress\/smiles\/msn\/wink_smile.gif"},{"@type":"BreadcrumbList","@id":"http:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"http:\/\/www.bkits.at\/weblog\/"},{"@type":"ListItem","position":2,"name":"The Sharp PC1403(H)","item":"https:\/\/www.bkits.at\/weblog\/the-sharp-pc1403h\/"},{"@type":"ListItem","position":3,"name":"Programming"}]},{"@type":"WebSite","@id":"http:\/\/www.bkits.at\/weblog\/#website","url":"http:\/\/www.bkits.at\/weblog\/","name":"Berni&#039;s ~page V5 Weblog","description":"The official weblog to Berni&#039;s ~page V5","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.bkits.at\/weblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"}]}},"_links":{"self":[{"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/pages\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":2,"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/pages\/9\/revisions"}],"predecessor-version":[{"id":111,"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/pages\/9\/revisions\/111"}],"up":[{"embeddable":true,"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/pages\/7"}],"wp:attachment":[{"href":"http:\/\/www.bkits.at\/weblog\/wp-json\/wp\/v2\/media?parent=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}