1 / 5

Assembler (assembly language)

Assembler (assembly language). MASM (Microsoft’s Assembler). What’s a compiler? What’s an assembler?. Representing numbers (ints). Fixed, finite number of bits. bits bytes C/C++ Intel Sun 8 1 char [s]byte byte 16 2 short [s]word half 32 4 int or long [s]dword word

travisjones
Download Presentation

Assembler (assembly language)

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Assembler (assembly language)

  2. MASM (Microsoft’s Assembler) • What’s a compiler? • What’s an assembler?

  3. Representing numbers (ints) • Fixed, finite number of bits. bits bytes C/C++ Intel Sun 8 1 char [s]byte byte 16 2 short [s]word half 32 4 int or long [s]dword word 64 8 long long [s]qword xword

  4. MASM (Microsoft’s Assembler) • Defining data in MASM: [label] <tab> type <tab> val1[,…,valn] <tab> [;comment] For unsigned int data, type may be byte, word, or dword. For signed int data, type may be sbyte, sword, sdword.

  5. MASM (Microsoft’s Assembler) [label] <tab> type <tab> val1[,…,valn] <tab> [;comment] .data ;begin data section count dword 0 ;counter - init to 0 tbl byte 1, 2, 4, 8, 16, 32, 64, 128 ;power-of-2 table . . . .code ;begin code section . . .

More Related