flat assembler
Message board for the users of flat assembler.
Index
> Projects and Ideas > File converter template [DONE] |
Author |
|
shoorick 09 Feb 2007, 11:36
Hi!
this is template for fast creating file conversion utilities. Contains needed set to parse commandline, open files, read symbol, write symbol, close files. You need mostly just to insert your processing code between read and write. designed as template for WinAsm, but not depends to IDE. package has also tab2spaces converter can be used as example Enjoy!
_________________ UNICODE forever! Last edited by shoorick on 02 Apr 2007, 09:27; edited 4 times in total |
|||||||||||||||||||||
09 Feb 2007, 11:36 |
|
shoorick 09 Feb 2007, 13:03
thanks!
- tabs in commandline - never met them, but possible to change - parser returns not pathes, but parameters divided with spaces - warning - ok - lost of end quote: bug, will be fixed i decided to return aaa"bbb" as separate parameter for case like /o:"c:\my docs\out.txt" |
|||
09 Feb 2007, 13:03 |
|
shoorick 09 Feb 2007, 13:19
-tabs in commandline: i already forgot check well, there is this code:
Code: cmp al,9 jne .not_tab mov al,20h .not_tab: ======= at the beginning!! understand!! - will be fixed - it is because first time i decided do not check for tabs in commandline, but then decided to check, but forgot to do thia in all places. thanks! ======= fixed uploaded Last edited by shoorick on 09 Feb 2007, 13:50; edited 2 times in total |
|||
09 Feb 2007, 13:19 |
|
shoorick 09 Feb 2007, 13:35
vid! have you tested it at all or you just figured it all out?
you can see below how i tried your situation on non-changed template (just messagebox inserted) what about dinamic strings - it is known to me you can use printf instead, or, say, fasmlib - it is my template - anybody can change it to make own more accustomed
_________________ UNICODE forever! |
|||||||||||||||||||
09 Feb 2007, 13:35 |
|
vid 09 Feb 2007, 13:56
Quote: vid! have you tested it at all or you just figured it all out? just figured. interesting, from the sources i would swear parameter gets cut behind second doublequote in argument. Quote: what about dinamic strings - it is known to me you can use printf instead, or, say, fasmlib - it is my template - anybody can change it to make own more accustomed |
|||
09 Feb 2007, 13:56 |
|
shoorick 09 Feb 2007, 14:15
1.you possibly missguided with "search_end" lablel ^) - it is not end of search, it is search of end of the parameter
2.in dynamic string, current and max length is a MUST-HAVE > you right. but combstr macros is not universal solution. it is fast solution for cases when you do know what you do. although these macros do not check end of buffer, they can be mixed with checking code when you unsure - edi has current position in buffer, top of stack - pointer to first byte beyound end of buffer, [esp]-edi - free space left. look at cs_test example in shoolib - it is used there. i've been thinking about checking macros - the matter is free time, possible in future |
|||
09 Feb 2007, 14:15 |
|
shoorick 10 Feb 2007, 07:14
Updated: rebuilded stage of commandline parsing to make it more handy. If it is not clear, but you are satisfied with two parameters you do not need to touch it at all.
Enjoy! |
|||
10 Feb 2007, 07:14 |
|
shoorick 02 Apr 2007, 09:31
another added on first page - line-by-line converter. here is example to it: assember comments remover. usage:
Code: decoment mysource.asm new.asm
_________________ UNICODE forever! |
|||||||||||
02 Apr 2007, 09:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.