flat assembler
Message board for the users of flat assembler.

Index > Windows > Some question from Delphi to FASM

Author
Thread Post new topic Reply to topic
Hp



Joined: 03 Jul 2004
Posts: 16
Hp
Hello,

i write simple delphi programs and now I have some questions. I want make now my codes in fasm
because they are small and fast.

1. I want kill a task named "text.exe" with parameter "/u" for unload.

2. Small example to write in registry this think.
rootkey: HKEY_CURRENT_USER
Key: Software\Alexy
WriteString('Param', 'ExitProgram');

3. Make from more dbs ones.
Example in Delphi, please in Assembler.
a := 'Test';
b := 'bText';
CopyF(a + b + '.txt', 'c:\test.txt'); // I want fusion a and b in one parameter

4. ChangeFileExt(file.txt, '.doc'); in assembler

5. Create directory in the system folder

6. string := ExtractFilename(ParamStr(0)); in assembler

7. random(4000); in assembler

8. sleep(4000); in assembler

9. Get ParamStr(0) and ParamStr(1)

10. Get SystemFolder in string



Thank you for your help.
Post 15 Jul 2004, 17:04
View user's profile Send private message Reply with quote
mike.dld



Joined: 03 Oct 2003
Posts: 235
Location: Belarus, Minsk
mike.dld
3. movs
7. rdtsc

For others you must learn WinAPI
Post 15 Jul 2004, 21:46
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
JohnFound
Hi.
You have to see Fresh standard library - there are a lot of functions you looking for. strlib.asm - for string functions, there is ChangeExt function (formengine.asm file) etc. There is a help file about string library in the package too.
btw: You will feel yourself very familiar with Fresh IDE, because its design and behaviour is very close to Delphi one.

Regards.
Post 15 Jul 2004, 22:58
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.