{"id":345,"date":"2013-12-11T19:23:30","date_gmt":"2013-12-11T18:23:30","guid":{"rendered":"http:\/\/www.dlabi.cz\/?p=345"},"modified":"2018-09-12T23:44:47","modified_gmt":"2018-09-12T21:44:47","slug":"netradicni-vytvareni-programu-pro-z80","status":"publish","type":"post","link":"https:\/\/dlabi.cz\/en\/netradicni-vytvareni-programu-pro-z80\/","title":{"rendered":"Unconventional programming for Z80"},"content":{"rendered":"<p><a href=\"\/\/www.dlabi.cz\/data\/\/autocomplete.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-350\" style=\"margin: 5px;\" src=\"\/\/www.dlabi.cz\/data\/\/autocomplete-300x300.png\" alt=\"autocomplete\" width=\"145\" height=\"145\" srcset=\"https:\/\/dlabi.cz\/data\/autocomplete.png 300w, https:\/\/dlabi.cz\/data\/autocomplete-150x150.png 150w\" sizes=\"auto, (max-width: 145px) 100vw, 145px\" \/><\/a>Recently I needed to create a simple utility for Sorda in assembler, and since Sorda's keyboard is not the best for text input, I thought of a more convenient way to do it.<\/p>\n<p>On the page <a href=\"\/\/clrhome.org\/asm\/\" target=\"_blank\">clrhome.org\/asm\/<\/a> it is possible to write a program in Z80 assembler, then compile it online and save it to disk. This is exactly what I need. Then I use a small utility bin2cas to create a CAS file that I can upload to MESS and test the program. Of course, more complex programs will be better developed directly on Sord in some assembler with debugger, but for simpler programs I can only recommend it.<\/p>\n<p>&nbsp;<\/p>\n<p>Sample of a simple program in assembler<\/p>\n<pre class=\"lang:asm decode:true\">#define     PRINT   1063H\r\n.org        $B000 ;program start address\r\n\r\nld    b,0    ;max number of characters\r\nld    HL, Message\r\ncall  PRINT ; Displays the string\r\nret\r\n\r\nMessage:\r\n.db         \"Hello world!\",0<\/pre>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Ned\u00e1vno jsem pot\u0159eboval vytvo\u0159it jednoduchou utilitku pro Sorda v assembleru a proto\u017ee kl\u00e1vesnice Sorda nen\u00ed to prav\u00e9 o\u0159echov\u00e9 pro vkl\u00e1dan\u00ed textu, napadlo m\u011b jak to ud\u011blat pohodln\u011bji. Na str\u00e1nce clrhome.org\/asm\/ je mo\u017eno ps\u00e1t program v assembleru Z80, n\u00e1sledn\u011b ho online zkompilovat a ulo\u017eit na disk. To je p\u0159esn\u011b to co pot\u0159ebuji. Pak pomoc\u00ed mal\u00e9 utilitky&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/dlabi.cz\/en\/netradicni-vytvareni-programu-pro-z80\/\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18],"tags":[51,52,19,50],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-8bit","tag-assembler","tag-program","tag-sord","tag-z80"],"_links":{"self":[{"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/comments?post=345"}],"version-history":[{"count":13,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":1079,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/posts\/345\/revisions\/1079"}],"wp:attachment":[{"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dlabi.cz\/en\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}