2. Lab#05 [Basics of Assembly Language & Interfacing with C++].pdf

This preview shows page 1 - 3 out of 5 pages.

Computer Org. & AssemblyLanguageLab#04: Basics of Assembly Language & Interfacing with C++AgendaIntroduction to Assembly ProgrammingoBasic Assembly CommandsData Types in Assembly LanguageAssembly Language Interfacing with C++oTemplate for Interfacing Assembly with C/C++1 |P a g e
Introduction to Assembly ProgrammingBasic Assembly CommandsYou should have basic information about general purpose registers according to IA (Intel Architecture).IA (Intel Architecture) 80X86 has too many instructions in Instruction set but we will use the followingcommands for this lab.1.MOV2.ADD3.SUB4.MULMOV (Move)Copies a byte or word from a source operand to a destination operand, it is equivalent toassignment operator as in c/c++. General Format of instruction is as follows:MOV reg1,reg2;reg1=reg2MOV reg, mem;reg=memFor exampleMOV eax,512;EAX=512MOV ebx,eax;EBX=EAX;EBX=512ADD (Addition)A source operand is added to a destination operand, and the sum is stored in the destination.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
jawad hassan

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture