Skip to content

Commit ce7e2fb

Browse files
Merge pull request #2269 from ronknight/master
correct spelling
2 parents 02db56f + 677ddea commit ce7e2fb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Assembler/GUIDE.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ int 0x80
2727

2828
```
2929

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.
3232
* 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.
3434
* The fifth line is a new line. This is important.
3535

3636
**Important: close each line with a newline!**
@@ -67,7 +67,7 @@ int 0x80
6767

6868
```
6969

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.
7171
Therefore we must use the register ebx as a placeholder, above.**
7272

7373

@@ -79,20 +79,20 @@ Result of code, above.
7979

8080
### Comments available
8181

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.
8484

8585
### Push and Pop
8686

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.
8888
Therefor we use the push and pop command.
8989

9090
```
9191
push eax
9292

9393
```
9494

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.
9696

9797
```
9898
pop ecx
@@ -109,7 +109,7 @@ pop [register]
109109

110110
### Jumps
111111

112-
With the command **cmp** we can compare two register.
112+
With the command **cmp** we can compare two registers.
113113

114114
```
115115
cmp r0, r1
@@ -119,7 +119,7 @@ jmp l2
119119
```
120120

121121
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**
123123

124124
#### Labels
125125

0 commit comments

Comments
 (0)