forked from Cactus-proj/RE-for-Beginners
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
\section{Registre à zéro} | ||
|
||
Il manque un registre à zéro dans l'architecture x86, contrairement à MIPS et ARM. | ||
Toutefois, c'est souvent le cas, lorsqu'un compilateur assigne zéro à un registre, | ||
il y restera jusqu'à la fin de la fonction. | ||
|
||
C'est le cas dans le jeu Mahjong de Windows 7 x86. | ||
EBX mis à zéro est utilisé pour initialiser les variables locales, passer un argument | ||
à zéro aux autres fonctions et pour comparer des valeurs avec lui | ||
|
||
\lstinputlisting[caption=Mahjong.exe de Windows 7 x86, style=customasmx86]{\CURPATH/Mahjong.exe.win7x86.lst} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters