The MASM Forum

General => The Campus => Topic started by: shekel on July 08, 2015, 06:11:27 AM

Title: Is this phrase correct??
Post by: shekel on July 08, 2015, 06:11:27 AM
I dont know how can be more descriptive in the title..

If in a proc i have this var

LOCAL buffer[100]:BYTE
lea eax, buffer


now eax is for example 0012FD3C so i can modify like i want this space (0012FD3C <---> 0012FDA0) while im in this proc??? or maybe i overwriting something important??

If in this space of memory i have a string, this only can be 99d of length and the byte on the position  0012FDA0 should be a '00', right?

Sorry for my enlgish
Title: Re: Is this phrase correct??
Post by: rrr314159 on July 08, 2015, 06:23:38 AM
That's right except that the last address you can modify is 0012FD9F, which must contain a 0 if you have a 99-char zero-delimited string. 0012FDA0 actually points to the next address beyond the "buffer" space