flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
thirteen 17 Oct 2004, 21:23
hello all, i have a problem and dont know what i have to do, i have written this code:
Code: include "%fasminc%\win32ax.inc" TinyDownloader: invoke GetCommandLine mov esi, eax inc esi FindSpace: cmp byte [esi], 32d je GetURL cmp byte [esi], 34d je Exit inc esi jmp FindSpace GetURL: inc esi xor ecx, ecx inc ecx FindSemicolon1: cmp byte [esi], 59d je SaveURL inc esi inc ecx jmp FindSemicolon1 SaveURL: inc esi push esi sub esi, ecx invoke lstrcpyn,\ FileURL,\ esi,\ ecx GetSaveAs: pop esi xor ecx, ecx inc ecx FindSemicolon2: cmp byte [esi], 59d je SaveSaveAs inc esi inc ecx jmp FindSemicolon2 SaveSaveAs: inc esi push esi sub esi, ecx invoke lstrcpyn,\ SaveAs,\ esi,\ ecx invoke MessageBox, 0, FileURL, SaveAs, 0 Exit: invoke ExitProcess, 0 Datas: FileURL db 255d SaveAs db 255d data import library kernel32, "KERNEL32.DLL",\ user32, "USER32.DLL" import kernel32,\ GetCommandLine, "GetCommandLineA",\ lstrcpyn, "lstrcpynA",\ ExitProcess, "ExitProcess" import user32,\ MessageBox, "MessageBoxA" end data this would be a command line tool, called by this: Quote: tool.exe http://whatever.com/yeah.jpg;C:\yeah_downloaded.jpg But when i run this program with such parameters there is a problem with the first one, please, can anybody help me? thx at this point, thirteen |
|||
![]() |
|
vbVeryBeginner 17 Oct 2004, 22:44
Quote:
the link is broken by the way, i am advised not to use the ESI , unless i know what i am doing ![]() even if i need to use it, i should push it and pop it later ![]() and by the way also, here is my command line http://sulaiman.thefreebizhost.com/software/cmd_parser.rar |
|||
![]() |
|
thirteen 17 Oct 2004, 23:56
hehe, me is a dumbass
![]() Code: Datas: FileURL rb 255d SaveAs rb 255d and not: Code: Datas: FileURL db 255d SaveAs db 255d i just startet out with fasm ![]() |
|||
![]() |
|
comrade 18 Oct 2004, 02:11
maybe you will have better luck next time...
|
|||
![]() |
|
vbVeryBeginner 18 Oct 2004, 08:01
http://whatever.com exists
![]() by the way, i thought fasm treats number default to decimal therefore no need to add a "d" at the back ? unless h or b |
|||
![]() |
|
thirteen 18 Oct 2004, 13:52
Hmm, dont know, i always set a "d" or "h" behind numbers...i know it from tasm, and when there it is not defined its hex.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.