Re: Help with Enter and Leave Instructions




biggerplum wrote:
> Hey,
>
> for my uni assignment i have to write a program in asm, It is in the
> mark scheme that we use the ENTER and LEAVE instuctions, Im having abit
> of trouble getting my head around this. I was hoping someone could show
> me an example of how to use these, and how to pass in parameters and
> return a value.
>
> Thanks alot
>
> Biggerplum

Here are some references to help explain how to pass parameters and do
advanced things with ENTER and LEAVE:

http://webster.cs.ucr.edu/AoA/Windows/PDFs/IntermediateProcedures.pdf
http://webster.cs.ucr.edu/AoA/Windows/PDFs/ParameterImplementation.pdf
http://webster.cs.ucr.edu/AoA/Windows/PDFs/LexicalNesting.pdf

This is all part of the 'Art of Assembly' book which you can find
on-line here:
http://webster.cs.ucr.edu/AoA/index.html
Cheers,
Randy Hyde

.