From 0ae5ab13a9022d6db1f19b3b0526cccad41975f3 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Wed, 13 May 2015 14:37:21 -0700 Subject: [PATCH] Test comments --- tests/pc/80386/tests.nasm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/pc/80386/tests.nasm b/tests/pc/80386/tests.nasm index 65c9bedc3..6d83efbcc 100644 --- a/tests/pc/80386/tests.nasm +++ b/tests/pc/80386/tests.nasm @@ -292,16 +292,16 @@ toProt32: mov es,ax ; ; Of the 64Kb of scratch memory we allocated, the first 8Kb (0x2000) is being used for a - ; page directory and a single page table, so we have at least another 52Kb, at ESI+0x2000, - ; to play with (I'm rounding down by 4Kb to be safe). + ; page directory and a single page table, so we have at least another 56Kb, at ESI+0x2000, + ; to play with. ; - ; Let's use the top of that memory, ESI+0xd000, as the top of our stack. Note, however, that + ; Let's use the top of that memory, ESI+0xe000, as the top of our stack. Note, however, that ; that guarantees ESI will be be greater than 0xffff, so as long as SS contains a 16-bit data - ; segment, pushes will NOT be occurring where you expect. + ; segment, pushes will NOT be occurring where you'd normally expect. ; add esi,0x2000 ; ESI -> bottom of scratch memory mov ss,ax - lea esp,[esi+0xe000] ; set ESP to bottom of scratch + 52K + lea esp,[esi+0xe000] ; set ESP to bottom of scratch + 56K lea ebp,[esp-4] and ebp,0xffff ; EBP now mirrors SP instead of ESP mov edx,[ebp]