Results 1 to 8 of 8
Is the opcode leal(load effective address) primarly used to calculated the address of
a value that was pushed on the stack?
If anyone knows of any good web sites on ...
- 02-03-2008 #1
Gnu Assembler Question
Is the opcode leal(load effective address) primarly used to calculated the address of
a value that was pushed on the stack?
If anyone knows of any good web sites on this topic could you pass it on to me.
Thanks in advance....Gerard4143
- 02-03-2008 #2
Go here and search the page for the word "tutorial".
Hope this helps.--
Bill
Old age and treachery will overcome youth and skill.
- 02-03-2008 #3Linux Newbie
- Join Date
- Jan 2008
- Location
- UK
- Posts
- 211
here's some links
80386 Programmer's Reference Manual -- Opcode LEA
or
80386 Programmer's Reference Manual
- 02-05-2008 #4
My understanding of leal
So if I understand the reference materials leal returns the address of a label or memory reference.
- 02-05-2008 #5
I've never coded in x86 assembler, but that is my impression, yes. Play with it and see what happens. Use gdb. Grab gas & gdb with great gusto.
--
Bill
Old age and treachery will overcome youth and skill.
- 02-06-2008 #6Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
With the lea instruction you can store an address (pointer) of a memory location (variable) into a register.
It's used to do calculations on without affecting any flags, or the need of pushing and popping flags and it's also used in repetitve tasks.
Regards
- 02-06-2008 #7
GDB with great gusto
read "Using GNU's GDB debugger by Peter Jay Salzman"
everyone should read this web sight great intro to the GDB...Gerard4143
- 02-06-2008 #8
I'm sure that gerard4143 meant to include the link. Here's the link. I've just glanced over that tutorial, and it seems fine. It doesn't seem to address his original concerns about using the assembler. The links provided previously by wowbag1 and me will do that.
--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote