News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

I need a program called "FindLine"

Started by learn64bit, November 29, 2022, 04:41:33 AM

Previous topic - Next topic

learn64bit

someone have noticed me: we forgot to make sure have at least one none empty line in a and b.
I think he is right.

TouEnMasm

Fa is a musical note to play with CL

learn64bit

TouEnMasm,
thanks.

if check fail, we just exit.

learn64bit

idea update,
do none empty line check before none empty line length check.
none empty line exist, then continue. otherwise exit

learn64bit


learn64bit

q:is your next program called "finding in line" or "FindString", "FindHex"?
a:haha, no! no next program untill I finished the FindLine.

learn64bit

make sure no duplicated line in a.txt
now lineLenght only work in one byte (cmp al,x)
  but we can make it work in two(cmp ax,x), three(cmpsb), four(cmp eax,x) and overfour(cmpsb)

ideas still welcome, this is just the beginning.
thanks everyone!

q:where is somebody's idea
a:
xor eax,eax
jmp skipNoneUsedIdeaCode
;none used idea code
mov eax,0
skipNoneUsedIdeaCode:

learn64bit


zedd151

Quote from: learn64bit on December 29, 2022, 01:08:32 AM
too slow..
Not surprising as you are opening two files @ 1 Gigabyte or more and working on them.
Get the code to work first, then you can work on optimizing it to make it run faster once it works properly. :icon_idea:


Congratulations for your persistence.  :thumbsup:  I usually put code on the back burner if I haven't gotten it up and running after a couple of days.

zedd151

Quote from: learn64bit on December 29, 2022, 01:08:32 AMalready found a bug...
Sorry to hear that. Hope you can find it, you seem to making some progress with your project.


learn64bit


zedd151

Quote from: learn64bit on December 30, 2022, 01:34:55 AM
still very slow, but we must move on
:biggrin:  We will be awaiting the final version.  :thumbsup:

learn64bit

this is a dead project, because I am not interested anymore
(hope somebody will finish it someday)
(it's a .rar file, not a .zip file)

learn64bit

#104
in order to create line address and length table, now I need to figure out the maximumLineNumber of b.txt
(when I done this, I will upload the source code again)

Oooops!