Skip to content

Commit 14158f2

Browse files
committed
minor wording improvements
1 parent d4d2fc1 commit 14158f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

solve/number_mashing/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,19 @@ $ ./number-mashing
130130
Give me some numbers: -2147483648 -1
131131
zsh: floating point exception ./number-mashing
132132
```
133-
On x86 architecture idiv assembly instruction is used, quick google `idiv floating point exception` bring us to
133+
On x86 architecture idiv assembly instruction is used, quick google _idiv floating point exception_ bring us to
134134
[stackoverflow](https://stackoverflow.com/questions/56303282/why-idiv-with-1-causes-floating-point-exception).
135135
idiv will raise an exception in two cases:
136136

137137
* You divide by zero
138138
* The division result is not in the range that can be represented by the `eax` register
139139

140-
Indeed, range for 4 byte number is from -2147483648 to 2147483647, so ideally `-2147483648 / -1 = 2147483648` which doesn't fit
141-
range above, hence we got error.
140+
Indeed, range for 4 byte number is from -2147483648 to 2147483647, so result of `-2147483648 / -1 = 2147483648` doesn't fit in
141+
the range above, hence we got error.
142142

143143
On arm architecture sdiv instruction is used, it doesn't raise exception, instead carry flag is set in cpsr register.
144144

145-
Connecting to server and submitting two numbers got us the flag.
145+
Connecting to the challenge server and submitting two numbers got us the flag.
146146

147147
## Epilogue
148148

0 commit comments

Comments
 (0)