{"id":820,"date":"2022-01-11T05:26:15","date_gmt":"2022-01-11T05:26:15","guid":{"rendered":"http:\/\/tlindner.macmess.org\/?p=820"},"modified":"2022-01-11T05:26:15","modified_gmt":"2022-01-11T05:26:15","slug":"color-disk-edtasm-symbol-table","status":"publish","type":"post","link":"https:\/\/tlindner.macmess.org\/?p=820","title":{"rendered":"Color Disk EDTASM Symbol Table"},"content":{"rendered":"<p>The Color Disk EDTASM assembler has the option of writing a symbol table to the end of binaries it produces. You enable the feature by including the \/WS switch during assembly to disk. The symbol table can be used by the stand alone ZBUG debugger.<\/p>\n<p>Invoking the switch will add extra data after the LOADM post-amble. Here is how that data is formatted. First is the header. This is always 5 bytes in length.<\/p>\n\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-0lax{text-align:left;vertical-align:top}\n\n<table class=\"tg\">\n<thead>\n\n<tr>\n    <th class=\"tg-0lax\">Length<\/th>\n    <th class=\"tg-0lax\">Example Value<\/th>\n    <th class=\"tg-0lax\">Description<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n\n<tr>\n    <td class=\"tg-0lax\">1 Byte<\/td>\n    <td class=\"tg-0lax\">01<\/td>\n    <td class=\"tg-0lax\">Seems to be constant<\/td>\n  <\/tr>\n\n<tr>\n    <td class=\"tg-0lax\">2 Bytes<\/td>\n    <td class=\"tg-0lax\">0019<\/td>\n    <td class=\"tg-0lax\">The total length of the symbols and values, plus one<\/td>\n  <\/tr>\n\n<tr>\n    <td class=\"tg-0lax\">2 Bytes<\/td>\n    <td class=\"tg-0lax\">0000<\/td>\n    <td class=\"tg-0lax\">Seems to be constant<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n<p>Next you will find a table entry for each symbol and value pair.<\/p>\n\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-0lax{text-align:left;vertical-align:top}\n\n<table class=\"tg\">\n<thead>\n\n<tr>\n    <th class=\"tg-0lax\">Length<\/th>\n    <th class=\"tg-0lax\">Example Value<\/th>\n    <th class=\"tg-0lax\">Description<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n\n<tr>\n    <td class=\"tg-0lax\">1 Byte<\/td>\n    <td class=\"tg-0lax\">84<\/td>\n    <td class=\"tg-0lax\">Length of the symbol text, with the high bit set<\/td>\n  <\/tr>\n\n<tr>\n    <td class=\"tg-0lax\">n Bytes<\/td>\n    <td class=\"tg-0lax\">DONE<\/td>\n    <td class=\"tg-0lax\">Symbol name, ASCII encoded<\/td>\n  <\/tr>\n\n<tr>\n    <td class=\"tg-0lax\">2 Bytes<\/td>\n    <td class=\"tg-0lax\">0004<\/td>\n    <td class=\"tg-0lax\">Symbol value<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n<p>And finally is the footer. a single constant byte:<\/p>\n\n.tg  {border-collapse:collapse;border-spacing:0;}\n.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;\n  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}\n.tg .tg-0lax{text-align:left;vertical-align:top}\n\n<table class=\"tg\">\n<thead>\n\n<tr>\n    <th class=\"tg-0lax\">Length<\/th>\n    <th class=\"tg-0lax\">Example Value<\/th>\n    <th class=\"tg-0lax\">Description<\/th>\n  <\/tr>\n<\/thead>\n<tbody>\n\n<tr>\n    <td class=\"tg-0lax\">1 Byte<\/td>\n    <td class=\"tg-0lax\">0<\/td>\n    <td class=\"tg-0lax\">Seems to be constant<\/td>\n  <\/tr>\n<\/tbody>\n<\/table>\n<p>It should be noted the Assembler and ZBUG pair can only handle symbols with a maximum of six characters.<\/p>","protected":false},"excerpt":{"rendered":"<p>The Color Disk EDTASM assembler has the option of writing a symbol table to the end of binaries it produces. You enable the feature by including the \/WS switch during assembly to disk. The symbol table can be used by &hellip; <a href=\"https:\/\/tlindner.macmess.org\/?p=820\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-820","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=820"}],"version-history":[{"count":9,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/820\/revisions"}],"predecessor-version":[{"id":829,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=\/wp\/v2\/posts\/820\/revisions\/829"}],"wp:attachment":[{"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=820"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tlindner.macmess.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}