{"id":994,"date":"2022-08-30T15:10:37","date_gmt":"2022-08-30T15:10:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/how-to-call-an-label-in-a-section-while-i-defined-it-in-another-section-in-nasm-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:10:37","modified_gmt":"2022-08-30T15:10:37","slug":"how-to-call-an-label-in-a-section-while-i-defined-it-in-another-section-in-nasm-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-call-an-label-in-a-section-while-i-defined-it-in-another-section-in-nasm-collection-of-common-programming-errors\/","title":{"rendered":"How to call an label in a section while I defined it in another section in NASM?-Collection of common programming errors"},"content":{"rendered":"<pre><code>section dseg\nbits 16\ngdt:\ncode_descriptor:     \n.......\n\nsection cseg\nbits 16\nstart:\n    mov ax, seg dseg   \n<\/code><\/pre>\n<p>When I compile this file, it says:<\/p>\n<blockquote>\n<p>error : symbol &#8216;dseg&#8217; undefined.<\/p>\n<\/blockquote>\n<p>What is wrong? And how to call the offset address of cseg?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:11:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>section dseg bits 16 gdt: code_descriptor: &#8230;&#8230;. section cseg bits 16 start: mov ax, seg dseg When I compile this file, it says: error : symbol &#8216;dseg&#8217; undefined. What is wrong? And how to call the offset address of cseg? Originally posted 2013-11-09 23:11:54.<\/p>\n","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-994","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=994"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/994\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}