flat assembler
Message board for the users of flat assembler.
Index
> DOS > I need some advice, I am writing a big DOS project ... |
Author |
|
Tomasz Grysztar 17 Jun 2003, 14:12
I'm using the second variant for the ASMEDIT control in Win32 GUI version of fasm, and it was based on my old text mode editor for DOS called fedit. Each line has the fixed length of 108h bytes, first dword contains address of previous line, second dword contains address of next line, and the rest (256 bytes) is for the line data. If one of the addresses is zero, it means that this is the first or last line in file. If first address is -1, this line has been deleted and can be reallocated. I'm also using the same 108h byte pieces for the undo buffer, so the memory allocation sheme is the same for all purposes.
|
|||
17 Jun 2003, 14:12 |
|
JohnFound 17 Jun 2003, 14:41
Hi Privalov.
Yes, this variant is very tepmting and I hardly hold myself of using it The reason is the fact that common assembly lines are very short and this variant will waste a lot of memory for every file. In Windows this is maybe not a problem, but I must live with 300..400kbytes in this project. Hm, what if I make this array as a file. Do you think it will be fast enough? |
|||
17 Jun 2003, 14:41 |
|
scientica 17 Jun 2003, 18:28
JohnFound wrote: but I must live with 300..400kbytes in this project. What about only keeping a few lines (the visible+a few extra) in memory at a time, and then read the text from the disk as needed, perhaps use a temporary swap file for saving the edited/unsaved files? It would be slow if one uses floppies (which IMO should die ) thought. _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
17 Jun 2003, 18:28 |
|
JohnFound 17 Jun 2003, 18:33
To scientica:
Yes I think this will be the end version. Maybe slow, but it will give me opportunity to open many and big files. and you know that OS sources are big in the most cases. |
|||
17 Jun 2003, 18:33 |
|
keyoke 19 Jun 2003, 10:36
JohnFind,
Can you make your ide avaliable for us...that would be great. |
|||
19 Jun 2003, 10:36 |
|
JohnFound 19 Jun 2003, 12:00
Hi, keyoke.
Yes, this IDE will be free. But it is still in very early state. So, if you are interesting, here is little demo. The interface is almost done. So, say your opinion. http://johnfound.hit.bg/asm/demo.zip http://spaceglyph.mail333.com/demo.zip |
|||
19 Jun 2003, 12:00 |
|
asmgges 19 Jun 2003, 13:02
Hi ! John
It is promising ! Good work ! Friendly...Gges |
|||
19 Jun 2003, 13:02 |
|
scientica 19 Jun 2003, 13:08
WOW!
That's a wonderfull pice of code! How did you customized the font? _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
19 Jun 2003, 13:08 |
|
JohnFound 19 Jun 2003, 13:52
So, this is special text mode 90x36 with some tricky semi-graphic elements - like scrollbar thumbs and mouse pointers. Maybe I must publish the whole source, maybe it will be usefull for someone, because it's a stand-alone library for this type of semi-GUI.
OK, look at the source: http://spaceglyph.mail333.com/semigui.zip P.S. it's free for use and change, but copyrighted, so if you use this code, put somewhere in the about box - "based on works of John Found" or something similar. |
|||
19 Jun 2003, 13:52 |
|
keyoke 20 Jun 2003, 06:23
Looks good...cant wait for the end result
|
|||
20 Jun 2003, 06:23 |
|
Octavio 21 Jun 2003, 15:21
[quote="JohnFound"]
So, the problem is with text editor. Almost all is ready, including syntax highlight, but I can't choose the general strategy for handling text files in memory. (The memory is limited because I want to work only in 1st MByte, because the other memory will be reserved for fasm compiler and running application/OS) the strategy that i use is: 1o make a index of the file and store it in memory leaving the file on disk 2o store modified lines of txt in memory using a linked list whith the number of the line and the relative number to calculate the equivalent line in the file 3o save changes to disk and free memory. if you are interested i can send you the source code of my text editor, but it only work whith my Os. |
|||
21 Jun 2003, 15:21 |
|
JohnFound 21 Jun 2003, 20:28
Hi Octavio.
Your idea is interesting. Thank you. Please, send me ( johnfound@abv.bg ) these sources. (I hope they are written on FASM, but if not, they will be useful too.) Regards John Found |
|||
21 Jun 2003, 20:28 |
|
Octavio 23 Jun 2003, 17:46
JohnFound wrote: Hi Octavio. Each of the following recipients was rejected by a remote mail server. The reasons given by the server are included to help you determine why each recipient was rejected. Recipient: <johnfound@abv.bg> Reason: [1] cyberangels/DeSantos, see http://spews.org/ask.cgi?S2492TERRA-NETWORKS http://groups.google.com/groups?q=rra.%2Bes+group:news.admin.net-abuse.sightings&hl=&lr=e=F-8&sa=scoring= Please reply to <postmaster@teleline.es> if you feel this message to be in error. |
|||
23 Jun 2003, 17:46 |
|
JohnFound 23 Jun 2003, 21:43
Octavio, I am sorry for inconvenience, but you know, these free mails...
So, tomorrow I will try to send you my office mail address ( I can't remember it just now ) |
|||
23 Jun 2003, 21:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.