flat assembler
Message board for the users of flat assembler.
Index
> Windows > The returned parameter is an array |
Author |
|
3371574870 15 Sep 2020, 16:57
I called a function of an external DLL and it returned an array of parameters The returned parameters are stored in an eax register I don’t know how to extract an element of the array from eax The returned eax is like this: eax='1|249|5|23|21' Are 5 elements separated by ‘|’ As a novice, I would like to ask for help, thank you very much for that!
_________________ Suddenly fell in love with fasm |
|||||||||||
15 Sep 2020, 16:57 |
|
3371574870 15 Sep 2020, 18:59
|
|||
15 Sep 2020, 18:59 |
|
3371574870 15 Sep 2020, 23:51
This is an unfinished code
I don’t know if this idea is feasible I want to use registers to achieve all without memory access mov edi,eax mov al,'|' repne scasb invoke msg,0,edi,0,0 |
|||
15 Sep 2020, 23:51 |
|
bitRAKE 16 Sep 2020, 05:07
3371574870 wrote: I want to use registers to achieve all without memory access Code: mov edi,eax mov esi,eax ; start of string mov al,'|' repne scasb mov byte [edi-1],0 ; null terminate invoke msg,0,esi,0,0 SCASB is memory access. _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
16 Sep 2020, 05:07 |
|
3371574870 16 Sep 2020, 11:38
Thank you for your answer. You made me discover the fun of fasm
|
|||
16 Sep 2020, 11:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.