Operation of Assemblers
Member rating: No Rating | Words: | Submitted: Sun Dec 15 2002
On the left is an image preview of every page of this document, and below are the first 150 words with formatting removed:
Operation of Assemblers A program written in assembly language is much more readable and understandable than its equivalent in machine code; an assembler is a program which translates assembly language into machine code. The assembler accepts an assembly language program as data, converts mnemonic operation codes (op-codes) to their numeric equivalents, assigns symbolic addresses to memory locations and produces as output the required machine code program. Assembly language is the source program and when translated into machine code it is know as object program. The following programs are written for the BEP/16 programming environment to achieve the following arithmetic operations: a) a + b SWI getInt ; Operating ; system call to ; get a 16 bit ; integer from ; the keyboard. ; Value returned ; in R0 MOV R1, R0 ; Store the first ; value in R1 SWI getInt ; Get second value MOV R2, R0 ; Store in register ; R2 MOV R3, R1 ; R3 =...


