From 392f283d9e2300fdfa9eb5b171a5f594debbe949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Moln=C3=A1r?= Date: Thu, 22 Jun 2006 15:54:25 +0200 Subject: [PATCH] added some comments --- src/stub/src/i386-dos32.djgpp2.asm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/stub/src/i386-dos32.djgpp2.asm b/src/stub/src/i386-dos32.djgpp2.asm index a95d1d69..fafb24bf 100644 --- a/src/stub/src/i386-dos32.djgpp2.asm +++ b/src/stub/src/i386-dos32.djgpp2.asm @@ -53,6 +53,12 @@ start: or ebp, byte -1 ; __LZMA_INIT_STACK__ + +; as this stub gets loaded from 0x000000a8, we have some scratch +; memory starting from 0x00000000 to store ss:esp +; note: NULL page protection is only activated by the +; uncompressed application later + xor eax, eax mov [eax], ss mov [eax + 4], esp @@ -70,7 +76,7 @@ start: %include "arch/i386/lzma_d.ash" ; __LZMA_DONE_STACK__ - mov ss, [eax] + mov ss, [eax] ; eax is always 0 here mov esp, [eax + 4] ; =============