flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 18 Nov 2019, 16:51
memmove is a pointer so you need to dereference it:
Code: call [memmove] |
|||
![]() |
|
DSblizzard 18 Nov 2019, 17:15
Thank you, now it works. But following code still crashes:
mov rdi, temp_str1 mov rsi, temp_str mov rdx, 3 cinvoke memmove, rdi, rsi, rdx Is cinvoke supposed to work only with certain registers? Seems like it is a bug. |
|||
![]() |
|
revolution 18 Nov 2019, 17:22
You need to be aware of the register allocation order that cinvoke uses. When you have an overlap like you do in your example then currently the only way to solve it is to manually set the registers.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.