flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 12 Sep 2010, 14:21
1. Don't understand what you are asking. You can make/use whatever calling standard you want.
2. There is no such thing as better. It depends upon what you want to achieve. 3. Strings are usually passed as pointers. Generally you can't use word/byte values in a dword calling standard. 4. Unbalanced stack = bad. Don't do it. Random failures could occur at any time. 5. All current 64-bit CPUs fully support the 16bit modes. 6. No. Esp is only valid as long as you never use push, pop or any instruction that alters the stack pointer. 7. Rep only works with string instructions. Loop is a branching instruction. Do you have you the CPU manuals? If not, download them. |
|||
![]() |
|
Nameless 12 Sep 2010, 14:35
3. passing a string (reserved byte) as a pointer? like:
Code: .data str1 rb 1024 .code mov eax, str1 ;or mov eax, dword [str1] ;or mov eax, dword str1 is thats the string pointer, which one is correct? 6. so the idea is correct as long as i don't use any instruction that alters the stack? i just mean their order, whose first and whose last and the numbers 8, 12, 16 are they correct? considering the dword is 4 bytes each? 7. now i do, i used to have just 1, but now i got the 5, gonna start looking |
|||
![]() |
|
revolution 12 Sep 2010, 14:41
3.
Code: mov eax,string1 ; a pointer to string1 mov eax,dword[string1] ; the first 4 characters of string1, NOT a pointer 7. Happy reading. |
|||
![]() |
|
Nameless 12 Sep 2010, 14:43
6. yea, ill move their values to variables as soon as the procedure starts, but im confused about their order, is there any simple way to remember it with? some equation maybe?
thanks alot for ur time ![]() |
|||
![]() |
|
revolution 12 Sep 2010, 14:48
The first value pushed will have the highest numerical address.
The last value pushed will have the lowest numerical address. But, the offsets (esp+something) are variable and changing because esp changes. |
|||
![]() |
|
Nameless 12 Sep 2010, 14:54
I got it all now
![]() can i send u a private message? there is a couple of thing that i couldn't ask here ![]() i would have offered u a drink if u didn't live in Narnia, and thats the third time i think ![]() |
|||
![]() |
|
revolution 12 Sep 2010, 14:58
My PM box is always available for people to send.
|
|||
![]() |
|
Nameless 12 Sep 2010, 15:04
thank you
![]() see u in another episode of THE N00B CRAP hehehe ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.