{"id":3246,"date":"2025-04-17T10:30:56","date_gmt":"2025-04-17T10:30:56","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?post_type=spl_knowledgebase&#038;p=3246"},"modified":"2025-06-10T07:44:07","modified_gmt":"2025-06-10T07:44:07","slug":"builder-standard-segment-names","status":"publish","type":"spl_knowledgebase","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/","title":{"rendered":"Builder: Standard segment names"},"content":{"rendered":"\n<p>You are free to invent your own segment names for use with Builder. The only exception is that there is one special, predefined segment called&nbsp;<code>-UNAMED-<\/code>&nbsp;which captures anything in your source files that appears before a &lt;&#8230;&gt; segment tag and emits them first.<\/p>\n\n\n\n<p>In any library functions that we make we will stick as far as possible to the following list of names. It&#8217;s a good idea if you use the same names for corresponding function.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><code>DOCCOSEG<\/code><\/td><td>Contains any documentation on how to use a library file.&nbsp;<code>DISCARD<\/code>&nbsp;from your builds<\/td><\/tr><tr><td><code>IOSEG<\/code><\/td><td>Input and output assignments, including analogs<\/td><\/tr><tr><td><code>CONSTSEG<\/code><\/td><td>Constant values, for example time intervals<\/td><\/tr><tr><td><code>MEQUSEG<\/code><\/td><td>Contains any mEQU\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/glossary-of-terms\/#o414\">RAM<\/a>\u00a0allocations (say for PermStore).\u00a0<em>Must<\/em>\u00a0appear before any\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/defbyte-directive\/\">defBYTE<\/a><\/code>,\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/deffloat-directive\/\">defFloat<\/a><\/code>,\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/directives\/defsem-directive\/\">defSEM<\/a><\/code>\u00a0etc automatic RAM allocations.<\/td><\/tr><tr><td><code>DEFSEG<\/code><\/td><td>Contains\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-ram-allocation-schemes\/splat-pc-automatic-ram-allocation\/\">automatic RAM allocations<\/a>\u00a0<code>defBYTE<\/code>,\u00a0<code>defSEM<\/code>\u00a0etc. use this only if your prefer (stylistically) to have all your RAM allocations near the start of your program.<\/td><\/tr><tr><td><code>TESTSEG<\/code><\/td><td>Test code that should always be\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-discarding-segments\/\"><code>DISCARD<\/code>ed<\/a> from production builds<\/td><\/tr><tr><td><code>INITSEG<\/code><\/td><td>Initialize code &#8211; stuff that should run once at startup. Generally calls initialize routines for various modules\/objects.<\/td><\/tr><tr><td><code>LAUNCHSEG<\/code><\/td><td>Contains a\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/multitrack-instructions\/runtasksforever-d16\/\">RunTasksForever<\/a><\/code>\u00a0to start up\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/tutorial-multitrack\/\">MultiTrack<\/a>. Should be used in .b1d files with\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-oneonly-segment-qualifier\/\">ONEONLY<\/a><\/code><\/td><\/tr><tr><td><code>CODESEG<\/code><\/td><td>Actual active code. May also contain defXXX memory allocations if you prefer having them inside the module that owns them (<em>c.f.<\/em>&nbsp;near the top of your program.)<\/td><\/tr><tr><td><code>NVEM0DIR<\/code><\/td><td>Contains a\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/programming-reference\/instructions-arranged-by-function\/non-volatile-memory\/nvem0-directive-d15\/\"><code>NVEM0<\/code>\u00a0directive<\/a>. Should be used in .b1d files with\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-oneonly-segment-qualifier\/\">ONEONLY<\/a><\/code>\u00a0Must appear before any other\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-onceinline-segment-qualifier\/\">NVEM<\/a>\u00a0related segment.<\/td><\/tr><tr><td><code>NVEM0DATA<\/code><\/td><td>Contains NVEM page 0 tables or data.<\/td><\/tr><tr><td><code>XWIREINIT<\/code><\/td><td>Contains an instruction (typically\u00a0<code>XwireMaster XwireTab)<\/code>\u00a0that will start up\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/xwire\/xwire-programming\/xwire-master-configuration\/\">Xwire<\/a>\u00a0using the configuration data located under the label\u00a0<code>XwireTab<\/code>\u00a0in NVEM0. Should be used in .b1d files with\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-onceinline-segment-qualifier\/\">ONCEINLINE<\/a>.<\/code>\u00a0Used by any of our library of Active Template modules that use Xwire.<\/td><\/tr><tr><td><code>XWIREMTAB<\/code><\/td><td>Contains the line label (typically\u00a0<code>XwireTab)<\/code>in NVEM0 that signals the\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/xwire\/xwire-programming\/xwire-master-configuration\/\">Xwire configuration table<\/a>. Should be used in .b1d files with\u00a0<code>ONEONLY.<\/code>\u00a0Used by any of our library of Active Template modules that use Xwire.<\/td><\/tr><tr><td><code>XWIREMDATA<\/code><\/td><td>Contains configuration data, in NVEM0, for\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/xwire\/xwire-programming\/xwire-master-configuration\/\">Xwire master operation<\/a>. Used by any of our library of Active Template modules that use Xwire.<\/td><\/tr><tr><td><code>XWIREMEND<\/code><\/td><td>Contains an end of table sentinel for\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/tutorials-application-notes-and-white-papers\/xwire\/xwire-programming\/xwire-master-configuration\/\">Xwire master configuration data<\/a>. Should be used in .b1d files with\u00a0<code>ONEONLY<\/code>. Used by any of our library of Active Template modules that use Xwire<\/td><\/tr><tr><td><code>DEBUG1<\/code><\/td><td>Only ever used in\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-discarding-segments\/\"><code>&lt;=IF<\/code>\u00a0tags<\/a>. If enabled switches on debug features to help you debug your system.<\/td><\/tr><tr><td><code>DEBUG2<\/code><\/td><td>Only ever used in\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-conditional-segments-if\/\"><code>&lt;=IF<\/code>\u00a0tags<\/a>. If enabled switches on debug features to help you debug your system.<\/td><\/tr><tr><td><code>DEBUG3<\/code><\/td><td>Only ever used in\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-conditional-segments-if\/\"><code>&lt;=IF<\/code>\u00a0tags<\/a>. If enabled switches on debug features to help you debug your system.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Note that Builder will raise an error if there is a segment name in a .spt file that is not listed in the .b1d file, i.e. you must explicitly\u00a0<code><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-discarding-segments\/\">DISCARD<\/a><\/code>\u00a0unwanted segments. The inverse is not the case: you can have segment names in the .b1d file that do not exist in any .spt file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You are free to invent your own segment names for use with Builder. The only exception is that there is one special, predefined segment called&nbsp;-UNAMED-&nbsp;which&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3236,"menu_order":7,"template":"","class_list":["post-3246","spl_knowledgebase","type-spl_knowledgebase","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Builder: Standard segment names - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Builder: Standard segment names - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"You are free to invent your own segment names for use with Builder. The only exception is that there is one special, predefined segment called&nbsp;-UNAMED-&nbsp;which...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-10T07:44:07+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/\",\"name\":\"Builder: Standard segment names - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"datePublished\":\"2025-04-17T10:30:56+00:00\",\"dateModified\":\"2025-06-10T07:44:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SPLat\/PC programming software\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"SPLat\/PC: Builder\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Builder: Standard segment names\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Builder: Standard segment names - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Builder: Standard segment names - SPLat Controls","og_description":"You are free to invent your own segment names for use with Builder. The only exception is that there is one special, predefined segment called&nbsp;-UNAMED-&nbsp;which...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/","og_site_name":"SPLat Controls","article_modified_time":"2025-06-10T07:44:07+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/","name":"Builder: Standard segment names - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"datePublished":"2025-04-17T10:30:56+00:00","dateModified":"2025-06-10T07:44:07+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/builder-standard-segment-names\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"SPLat\/PC programming software","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/"},{"@type":"ListItem","position":3,"name":"SPLat\/PC: Builder","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/knowledgebase\/splat-pc-programming-software\/splat-pc-builder\/"},{"@type":"ListItem","position":4,"name":"Builder: Standard segment names"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/3246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/spl_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"up":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/spl_knowledgebase\/3236"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=3246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}