E N D
1. Introduction to Machine And Assembly Language Defining Data
Dr. Richard Ford
2. Okay… We’ve got our first program working (yippee!)
We (sort of) understand syntax
But how do we define data?
3. Data in Java Significantly richer group of data types
Leverage an abstraction of what’s going on underneath
Protection from the common mistakes…
It’s very different in Assembly language
4. Intrinsic Types Basically, the primitive building blocks inside of MASM
5. How to Define Data Actually, very straightforward…
[name] directive initializer [,initializer] …
Initializers:
Set initial value and is required for data
Can be a ? which does not specify a particular value
All values are converted to binary
6. Simple Examples Value1 BYTE ‘A’
Value2 BYTE 0
Value3 SBYTE -127
Value4 BYTE ?
7. More Interesting Examples…