Re: Displaying string




leon800219@xxxxxxxxx wrote:
Hi all:

I've encounter a code snippet that is for string display, but there's
some points I don't understand, hope you help me thanks.

DispStr:
push ebp
mov ebp, esp
push ebx
push esi
push edi

; First of all what's ebp, I've searched but got no explicit
explanation
; what's the purpose of the above statements about manipulating ebp,
and esp

You might want to read the chapters on procedures and stack frames in
"The Art of Assembly Language" (on Webster) that describes the purpose
of these instructions (http://webster.cs.ucr.edu).
Cheers,
Randy Hyde

.



Relevant Pages

  • Displaying string
    ... I've encounter a code snippet that is for string display, ... what's the purpose of the above statements about manipulating ebp, ...
    (alt.lang.asm)
  • Re: System.Type
    ... A bit overkill for my purpose but it seems like a possible way. ... > Semut wrote: ... below is a code snippet on determine what class does the class ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [gcc] indent -kr
    ... What was the purpose of showing us ... And what was the purpose of that code snippet? ...
    (comp.lang.c)