flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
ChrisLeslie
Why can't I do this:
proc test local blah[20]:BYTE mov esi,blah endp I know "blah" is 20 bytes on the stack, but why cant I reference it as though it was on the heap? |
|||
![]() |
|
shoorick
blah is not fixed offst but related to the current ebp, thus, should be:
lea esi,[blah] |
|||
![]() |
|
ChrisLeslie
Thanks shoorick. That makes sense and works fine.
![]() I also just found out that using "addr blah" with extended headers appears to achieve the same outcome. Chris |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.