{"id":399,"date":"2010-03-18T12:26:14","date_gmt":"2010-03-18T17:26:14","guid":{"rendered":"http:\/\/www.e-consystems.com\/blog\/compiling-bsectasm-of-x86-to-create-bsectimg\/"},"modified":"2023-08-15T12:31:44","modified_gmt":"2023-08-15T07:01:44","slug":"compiling-bsectasm-of-x86-to-create-bsectimg","status":"publish","type":"post","link":"https:\/\/www.e-consystems.com\/blog\/windowsce\/compiling-bsectasm-of-x86-to-create-bsectimg\/","title":{"rendered":"Compiling bsect.asm of X86 to create bsect.img"},"content":{"rendered":"<p style=\"text-align: justify;\">Most of the programmers find it difficult to compile the bsect.asm file. This is because of 32 bit assembly controller and not defining the build.bat file properly. Here you will find simple steps to compile the bsect.asm.<\/p>\n<p style=\"text-align: justify;\"><strong>Step1:<\/strong><br \/>\nTo compile the bsect.asm we need 32bit assemble compiler. Microsoft provides MASM32, which is a 32 bit assembly compiler.<\/p>\n<p style=\"text-align: justify;\">Download the 32bit assembly compiler from the following link \u201chttp:\/\/www.masm32.com\/masmdl.htm\u201d<\/p>\n<p style=\"text-align: justify;\">Install the MASM32 SDK in \u201cC\u201d drive.<\/p>\n<p style=\"text-align: justify;\"><strong>Step 2:<\/strong><br \/>\nUse Visual Studio command prompt for compiling, open the prompt and go to the bootsector location or the location where bsect.asm file available.<\/p>\n<p style=\"text-align: justify;\"><strong>Step 3:<\/strong><br \/>\n\u201cThe system cannot find the path specified\u201d error will occur if the build.bat file is not changed.<br \/>\nThen change the build.bat file from<\/p>\n<p style=\"text-align: justify;\">ml \/Zm \/c bsect.asm<br \/>\nc:\\msvc\\bin\\link bsect.obj,bsect.com,,,,<br \/>\ndebug bsect.com &lt; getbsect.scr<\/p>\n<p style=\"text-align: justify;\">to<\/p>\n<p style=\"text-align: justify;\">C:\\masm32\\bin\\ml \/Zm \/Flbsect.lst \/c bsect.asm<br \/>\nC:\\masm32\\bin\\link16 bsect.obj,bsect.com,,,,<br \/>\ndebug bsect.com &lt; getbsect.scr<\/p>\n<p style=\"text-align: justify;\">Define the path correctly. It is the path of the drive in which MASM32 is installed.<\/p>\n<p style=\"text-align: justify;\"><strong>Step 4:<\/strong><br \/>\nGive build command in the Visual Studio command prompt to compile.<br \/>\nAfter compiling you can find the \u201cBSECT.IMG\u201d file in the bsect.asm folder.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most of the programmers find it difficult to compile the bsect.asm file. This is because&#8230;<\/p>\n","protected":false},"author":14,"featured_media":1248,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[190],"tags":[90,132,86],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/posts\/399"}],"collection":[{"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":1,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/posts\/399\/revisions\/824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/media\/1248"}],"wp:attachment":[{"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.e-consystems.com\/blog\/windowsce\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}