@@ -27,10 +27,10 @@ int 0x80
27
27
28
28
```
29
29
30
- * The first line move the number 56 into register ecx.
31
- * The second line subtract 10 from the ecx register.
30
+ * The first line move the number 56 into register ecx.
31
+ * The second line subtracts 10 from the ecx register.
32
32
* The third line move the number 4 into the eax register. This is for the print-function.
33
- * The fourt line call interrupt 0x80, thus the result will print onto console.
33
+ * The fourth line call interrupt 0x80, thus the result will print onto console.
34
34
* The fifth line is a new line. This is important.
35
35
36
36
**Important: close each line with a newline!**
@@ -67,7 +67,7 @@ int 0x80
67
67
68
68
```
69
69
70
- **Important: The arithmetic commands (add, sub) works only with registers or constans .
70
+ **Important: The arithmetic commands (add, sub) work only with registers or constants .
71
71
Therefore we must use the register ebx as a placeholder, above.**
72
72
73
73
@@ -79,20 +79,20 @@ Result of code, above.
79
79
80
80
### Comments available
81
81
82
- Comments begin with ; and ends with a newline.
83
- We noticed a comment, above.
82
+ Comments begin with ; and end with a newline.
83
+ We noticed a comment above.
84
84
85
85
### Push and Pop
86
86
87
- Sometimes we must save the content of a register, against losing of data.
87
+ Sometimes we must save the content of a register, against losing data.
88
88
Therefor we use the push and pop command.
89
89
90
90
```
91
91
push eax
92
92
93
93
```
94
94
95
- This line will push the content of register eax onto the stack.
95
+ This line will push the contents of register eax onto the stack.
96
96
97
97
```
98
98
pop ecx
@@ -109,7 +109,7 @@ pop [register]
109
109
110
110
### Jumps
111
111
112
- With the command **cmp** we can compare two register .
112
+ With the command **cmp** we can compare two registers .
113
113
114
114
```
115
115
cmp r0, r1
@@ -119,7 +119,7 @@ jmp l2
119
119
```
120
120
121
121
Are the two register equal? The the command **je** is actively and jumps to label **l1**
122
- Otherwise the command **jmp** is actively and jumps to label **l2**
122
+ Otherwise, the command **jmp** is actively and jumps to label **l2**
123
123
124
124
#### Labels
125
125
0 commit comments