{"id":19,"date":"2007-02-18T06:51:47","date_gmt":"2007-02-18T12:51:47","guid":{"rendered":"http:\/\/blog.blockos.org\/?p=62"},"modified":"2010-06-27T20:53:21","modified_gmt":"2010-06-27T19:53:21","slug":"typo-negative","status":"publish","type":"post","link":"https:\/\/blog.blockos.org\/?p=19","title":{"rendered":"Typo negative"},"content":{"rendered":"<p>I cleaned up the 5&#215;7 font rendering routine. It now uses mkit macros and variables. Here&#8217;s a little example of how to use it:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">; set string length\r\nlda    #28\r\nsta    &lt;_al\r\n\r\n; set string pointer (don't forget to map it before)\r\nlda    #low(string)\r\nsta    &lt;_si\r\nlda    #high(string)\r\nsta    &lt;_si+1\r\n\r\n; set vram address where the font will be rendered\r\nlda    #$00\r\nsta    &lt;_di\r\nlda    #$10\r\nsta    &lt;_di+1\r\n\r\n; Here we go!\r\njsr    print5x7\r\n\r\n; You can set BAT using the zp var _block containing\r\n; the number of 8x8 bloc written<\/pre>\n<p>The code contained in the archive doesn&#8217;t need mkit as all the needed macros and variable declarations are included. If you want to use the font rendering with mkit, you&#8217;ll only have to include print5x7.asm and font.inc. font.inc contains both the standard 8&#215;8 font, the 5&#215;7 font and datas needed by the font routine.<\/p>\n<p>You can download the archive <a href=\"http:\/\/blockos.untergrund.net\/data\/pce\/font_18022007.zip\">[HERE]<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I cleaned up the 5&#215;7 font rendering routine. It now uses mkit macros and variables. Here&#8217;s a little example of how to use it: The code contained in the archive doesn&#8217;t need mkit as all the needed macros and variable declarations are included. If you want to use the font\u2026 <a class=\"continue-reading-link\" href=\"https:\/\/blog.blockos.org\/?p=19\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,6],"tags":[27,30],"_links":{"self":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19"}],"version-history":[{"count":2,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=\/wp\/v2\/posts\/19\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.blockos.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}