Slide 4.17: CALL instruction Slide 5.2: Defining data Home |
http://people.cs.und.edu/~userid/250/
.
lab2.asm
.
Examples of Laboratory 2 Execution | |
---|---|
|
No. | Operators/ Directives/ Commands |
Description | Textbook Page Numbers |
---|---|---|---|
1 | BYTE |
Directive of defining byte | 66 – 67 |
2 | call ReadString |
Reads a string from the keyboard, stopping when the user presses the Enter key.
| 122 |
3 | call WriteString |
Writes a null-terminated string to standard output. When calling it, place the string's offset in EDX register. |
124 |
4 | cmp |
Performs an implied subtraction of a source operand from a destination operand. | 156 |
5 | .code |
Marks the beginning of the code segment. | 55 |
6 | .data |
Marks the beginning of the data segment. | 55 |
7 | DUP |
Generates a repeated storage allocation, using a constant expression as a counter. | 67 |
8 | DWORD |
Directive of defining doubleword | 68 |
9 | END |
Marks the last line of the program to be assembled. | 59 |
10 | ENDP |
Marks the end of a procedure. | 59 |
11 | exit |
Calls a predefined MS-Windows function that halts the program. | 59 |
12 | inc |
Increment | 87 |
13 | INCLUDE Irvine32.inc |
Copies necessary definitions and sets up information from a text file name Irvine32.inc , located in the assembler's INCLUDE directory. |
59 |
14 | jmp |
Causes an unconditional transfer to a target location inside the code segment. | 104 |
15 | jne |
Jump if not equal | 158 – 162 |
16 | loop |
Loop. ECX is automatically used as a counter and is decremented each time the loop repeats. |
105 – 106 |
17 | mov |
Move | 81 – 82 |
18 | OFFSET |
Returns the offset of a data label. | 94 |
19 | PROC |
Identifies the beginning of a procedure. | 59 |
20 | SIZEOF |
Size of a data item | 97 |
http://people.cs.und.edu/~userid/250/
or a CD is not submitted.
For security, perform the following operation:
gandalf> chmod 700 lab?.asm*
to block all read/write accesses from others to the files lab?.asm*
.
Firefox will be used to download code.
Be sure your system is working on Firefox 3.0 or above.