Download presentation
Presentation is loading. Please wait.
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 char [s]byte byte short [s]word half int or long [s]dword word 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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.