flat assembler
Message board for the users of flat assembler.
Index
> Main > How to convert "mov fs:[0],esp" to FASM syntax? Goto page Previous 1, 2 |
Author |
|
bitRAKE 07 Feb 2009, 06:49
Azu,
local {name}:{TYPE} ...the order is important. |
|||
07 Feb 2009, 06:49 |
|
sinsi 07 Feb 2009, 06:54
wrong: "local DWORD:@dwReturn"
right: "local @dwReturn:DWORD" edit:damn, the board is slow today... |
|||
07 Feb 2009, 06:54 |
|
revolution 07 Feb 2009, 07:12
Remove the first "dword".
Code: invoke _GetKernelBase,dword[esp] |
|||
07 Feb 2009, 07:12 |
|
Azu 07 Feb 2009, 07:16
I already tried it with just specifying the second one, with both, and with just the first
invoke _GetKernelBase,dword[esp] gives "Error: operand size not specified. Display: Instruction: call[_GetKernelBase]" This compiles and runs fine Code: use32 format PE GUI 4.0 include 'J:\fasmw16727\INCLUDE\win32ax.inc' include '_GetKernel.asm' section '.text' code readable executable start: ; invoke _GetKernelBase,dword[esp] push dword[esp] call _GetKernelBase ret .end start But I'd really prefer to use invoke to make it more readable and not take up as many lines.. I know I shouldn't be picky, but I just don't see why it should be having an error... Last edited by Azu on 07 Feb 2009, 07:20; edited 1 time in total |
|||
07 Feb 2009, 07:16 |
|
revolution 07 Feb 2009, 07:18
Oh, is _GetKernelBase a local function of your own? In that case you should use stdcall/ccall instead of invoke.
Code: stdcall Myfunc,dword[esp] |
|||
07 Feb 2009, 07:18 |
|
Azu 07 Feb 2009, 07:21
Thank you. I'm done making a fool out of myself for today. *sneaks away*
|
|||
07 Feb 2009, 07:21 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.