{"id":3529,"date":"2013-08-07T05:09:05","date_gmt":"2013-08-06T19:09:05","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3529"},"modified":"2020-04-28T09:42:52","modified_gmt":"2020-04-27T23:42:52","slug":"assembler-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/assembler-primer-tutorial\/","title":{"rendered":"Assembler Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/DOS\/Assembler\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Assembler Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/DOS\/Assembler\/MASM_Assembler.jpg\" title=\"Assembler Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Assembler Primer Tutorial<\/p><\/div>\n<p>Assembler programming is a very early form of software code, dating back as far as 1954, that sits, in the spectrum of computer language sophistication, between computer machine code and the compiled source codes of modern programming languages (which comparatively read like a story \u2026 good luck with Assembler stories \u2026 gobbleLITTLELESSgook?!), predating BASIC and FORTRAN. The Wikipedia page about compilers puts this in historical perspective \u201c<\/p>\n<blockquote><p>The first compiler was written by Grace Hopper, in 1952, for the A-0 programming language. The FORTRAN team led by John Backus at IBM is generally credited as having introduced the first complete compiler in 1957.<\/p><\/blockquote>\n<p>\u201d Let\u2019s see some information about Assembler, from Wikipedia, below.<\/p>\n<blockquote><p>An assembly language is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture&#8217;s machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreters or compiling.<\/p>\n<p>Assembly language is converted into executable machine code by a utility program referred to as an assembler; the conversion process is referred to as assembly, or assembling the code.<\/p>\n<p>Assembly language uses a mnemonic to represent each low-level machine operation or opcode. Some opcodes require one or more operands as part of the instruction, and most assemblers can take labels and symbols as operands to represent addresses and constants, instead of hard coding them into the program. Macro assemblers include a macroinstruction facility so that assembly language text can be pre-assigned to a name, and that name can be used to insert the text into other code. Many assemblers offer additional mechanisms to facilitate program development, to control the assembly process, and to aid debugging.\n<\/p><\/blockquote>\n<p>The tutorial shows some simple Assembler code in action for a <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/DOS\/Assembler\/'>Hello World program<\/a> after seeing some slides regarding the install of MASM 32bit compiler of Assembler code.    Please take care if you go ahead installing MASM 32bit Assembler compiler, and, as mentioned several times with the install, do not proceed if there are even warning messages from the install, or, pretty obviously, if you do not have 32bit Windows as your operating system.<\/p>\n<p>Link to Assembler information &#8230; <a target=_blank title='Assembler programming information' href='http:\/\/en.wikipedia.org\/wiki\/Assembler_(computing)'>from Wikipedia from which quote above comes<\/a>.<br \/>\nLink to MASM32 SDK download website <a target=_blank title='Assembler programming information' href='http:\/\/www.masm32.com\/index.htm'>here<\/a> which installs an Assembler compiler for 32bit Windows.<br \/>\nLink to downloadable Assembler programming source code which is word for word from <a target=_blank title='Outputting Hello World in MASM using WIN32 Functions' href='http:\/\/stackoverflow.com\/questions\/4568306\/outputting-hello-world-in-masm-using-win32-functions'>Outputting Hello World in MASM using WIN32 Functions<\/a> and rename to <a target=_blank title='test.asm Assembler programming source code' href='http:\/\/www.rjmprogramming.com.au\/DOS\/Assembler\/test.asm_GETME'>test.asm<\/a><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3529' onclick='var dv=document.getElementById(\"d3529\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=42\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3529' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Assembler programming is a very early form of software code, dating back as far as 1954, that sits, in the spectrum of computer language sophistication, between computer machine code and the compiled source codes of modern programming languages (which comparatively &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/assembler-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,33,37],"tags":[108,558,818,885,997,1166,1319,1435],"class_list":["post-3529","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-software","category-tutorials","tag-assembler","tag-hello-world","tag-ms-dos","tag-operating-system-2","tag-programming","tag-software-2","tag-tutorial","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3529"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=3529"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3529\/revisions"}],"predecessor-version":[{"id":48851,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/3529\/revisions\/48851"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=3529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=3529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=3529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}