![]() |
|
#15
|
||||
|
||||
|
Hi Insid3Code. Not used any local variables inside. So the allocation is unnecessary I think. Even it can be shorter. Eg.
F1 PROC PUSHAD LEA RCX, TXT_F1 CALL puts POPAD F1 ENDP More, your edited code should be: F1 PROC PUSH RBP MOV RBP, RSP SUB RSP, 40 ; Allocate space on the stack (8 for alignment and 32 for shadow space); Below of MOV RBP, RSP, this instruction already saved RSP to RBP. LEA RCX, TXT_F1 CALL puts LEAVE ADD RSP, 40 ; Cleanup the stack... ; Not needed. The LEAVE instruction did it. RET F1 ENDP |
| The Following User Says Thank You to vic4key For This Useful Post: | ||
niculaita (07-21-2018) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| inline patche | hp3 | Source Code | 3 | 06-04-2021 14:48 |
| X64 inline asm | Fyyre | x64 OS | 48 | 08-10-2014 16:50 |
| Inline Patching | MaRKuS-DJM | General Discussion | 1 | 01-24-2004 23:03 |