Your Status: Logged out Log in

Operation of Assemblers  

Member rating: No Rating | Words: | Submitted: Sun Dec 15 2002

Page Preview
Preview
Previous 1 of 4 Next

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 =...

Get instant access



  • Instant, unlimited access to our documents in full
  • Swap your work for free access, or pay £4.99
  • To see the full version of this document and 146,168 others
Register Now
OR

Receive email updates for this category



  • Simply tell us your email address and receive a weekly Study Help Email for FREE
  • Receive 3 FREE essay views with each email
  • Get all the latest essays from Coursework.Info & discussion from TheStudentRoom.co.uk