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

phonetic alphabet font id
00h
  us english
01h
  uk english
...
FFh
  cn english

jj2007

And that is supposed to tell us ... what?  :rolleyes:

Note that a nullbyte (00h) will always be interpreted as "end of string". If you want to avoid that, and see strings, you should add 41h to these bytes, so 00h->A, 01h->B, 0FFh->@ etc

zedd151

@jj... seems to be some sort of 'proprietary format'. Only learn64bit knows for certain.

learn64bit

Advanced English program
tables
  english phonetic alpahet
    id <- column
  english word
   word - column
   ....

a.txt and b.txt can be one of the tables

jj2007

Quote from: learn64bit on December 02, 2022, 08:49:02 AM
Advanced English program
tables
  english phonetic alpahet
    id <- column
  english word
   word - column
   ....

a.txt and b.txt can be one of the tables

We believe you. Show us a medium sized table, i.e. more than 3 bytes, less than 3 gigabytes. And give us a description of the format, in real English please.

zedd151

Quote from: jj2007 on December 02, 2022, 08:50:45 AM
We believe you. Show us a medium sized table, i.e. more than 3 bytes, less than 3 gigabytes.
Hopefully a table that will be equal to or less than the zip file size limit after zipping.  :tongue:  Hate to have to attempt opening that file. Would take eons.  :biggrin:  (3 GB)


On second thought, a screenshot of it opened in the program where it is used might be helpful. Knowing that program name would certainly help too, learn64bit.

learn64bit

Idea update
A lady told me, I don't need b1. (a is 1gb. b is 1gb-1byte. c is 1gb-1byte. a1 is 1byte. b1 is 0byte. I can use b and a1 to restore a.)
I think she is right.
So now our FindLine will only use 4gb of RAM
  a, b, c and a1

4mb line memory will use HeapAlloc or something else, not AUPP

[thanks for everybody's advise]

zedd151


learn64bit

ideas still are welcome
I am just starting build it
I will go slow. so I can get more ideas. It means save more memory, program run faster!

[Thank everyone!]

zedd151

Quote from: learn64bit on December 04, 2022, 07:29:09 AM
ideas still are welcome
I am just starting build it
I will go slow. so I can get more ideas. It means save more memory, program run faster!

[Thank everyone!]
:thumbsup:

learn64bit

next step
how should I load a and b in their memory

jj2007

Quote from: learn64bit on December 04, 2022, 12:43:09 PM
next step
how should I load a and b in their memory

Let esi=FileRead$("a.txt")
Let edi=FileRead$("b.txt")

The Masm32 SDK has a similar macro. Just RTFM.

learn64bit


zedd151

Quote from: learn64bit on December 04, 2022, 12:43:09 PM
next step
how should I load a and b in their memory


At the bare minimum (no error checking), I would use the api's:



CreateFileA (ansi) or CreateFileW (unicode) ; opens the file
GetFileSize                                                ; gets file size in bytes
GlobalAlloc                                                ; allocate memory buffer
ReadFile                                                    ; read file into the memory buffer
CloseHandle                                              ; close file handle
~~~


;; here you would do what you need to with the file (now in memory buffer)


~~~
GlobalFree                                                ; free the memory used


That is how I would do it...  :biggrin:

jj2007