data movement instructions n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Data Movement Instructions PowerPoint Presentation
Download Presentation
Data Movement Instructions

Loading in 2 Seconds...

play fullscreen
1 / 13

Data Movement Instructions - PowerPoint PPT Presentation


  • 137 Views
  • Uploaded on

Data Movement Instructions. A Course in Microprocessor Electrical Engineering Department University of Indonesia. Assembler Detail. Directives Some common assembly language directives (pseudo-operations) appear in Table 4.21

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Data Movement Instructions' - avedis


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
data movement instructions

Data Movement Instructions

A Course in Microprocessor

Electrical Engineering Department

University of Indonesia

assembler detail
Assembler Detail
  • Directives
    • Some common assembly language directives (pseudo-operations) appear in Table 4.21
    • Directives indicate how an operand or section of program is to be processed by the assembler:
      • Storing Data in a Memory Segment: DB, DW, DD, SEGMENT, .DATA, ENDS, DUP, ALIGN -ex.4.12
      • ASSUME, EQU, ORG: the EQU equates a numeric, ASCII, or LABEL to another label -ex.4.13; the THIS refers the data as byte or word -ex.4.14; the ORG (origin) changes the starting offset address of data in the data segment; the ASSUME tells the
assembler detail cont d
Assembler Detail (cont’d)

the assembler what names have been chosen for the code, data, extra, and stack segments; the PROC and ENDP indicate the start and end of a procedure (subroutine) -ex.4.15; others are CALLF, CALLN, RETF, RETN, NEAR, FAR -ex.4.16

  • Memory Organization
    • The assembler uses two basic formats for deve-loping software: models and full-segment defi-nitions (available to the MASM assembler)
    • Models (ex.4.17): The TINY model (64 KB) and the SMALL model (128 KB), and HUGE model (>128 KB)
assembler detail cont d1
Assembler Detail (cont’d)
  • Full Segment Definitions
    • Ex.4.18 & Ex.4.19 illustrate the use of full-segment defi-nitions
      • Full-segment definitions are also used with the Borland and Microsoft C/C++ environments for procedures developed in assembly language
    • More structured form than the model method
    • STACK_SEG, DAT_SEG, CODE_SEG, END MAIN
assembler detail cont d2
Assembler Detail (cont’d)
  • A Sample Program
    • Study carefully Ex.4.20