flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fasm IDE EFI Text Editor questions |
Author |
|
MrFox 28 Nov 2016, 12:40
The code and the executable file are here, publically available:
https://yadi.sk/d/FmkMVKd4zfhVZ P.S. Click the flag at the bottom to switch interface from Russian to English P.P.S. No Warranty! Last edited by MrFox on 24 Dec 2016, 08:19; edited 1 time in total |
|||
28 Nov 2016, 12:40 |
|
revolution 28 Nov 2016, 12:46
MrFox wrote: 2. For text edition fields, I need a memory reserve to hold additional strings that the user will type during edition process. How many lines will suffice in your opinion? 32? 64? Will 1024 be enough? |
|||
28 Nov 2016, 12:46 |
|
MrFox 28 Nov 2016, 12:56
Thanks revolution. Yes, there is a reason. Maybe it's only in my head tho.
Memory allocation that concerns interface resides in interface library which can be used by all sorts of programs as it only handles interface (forms and controls). A client program that may use it (not necessarily an IDE like the one I'm developing) must not be limited in any way more than needed. In my interface library, I allow client program (IDE or anything else) to have multiple independent text edit fields in one window. The client program can create child windows with their own control sets. The client program will also consume memory (apart from interface needs). So if I take all the memory for the needs of one multiline edition field, that will spoil the game of others. I'm thinking of dynamical reallocation of controls when some kind of limit is reached so eventually, theoretically, files up to 'AvailableMemoryAmount' size can be opened. But as a starting point, I think I need rather humble amount of memory overhead for possible changes to initial content of the field. |
|||
28 Nov 2016, 12:56 |
|
revolution 29 Nov 2016, 12:12
I think it would be better to allocate on demand. As the user types more information then allocate more memory. If the user deletes information then deallocate memory. If you have a mechanism for defragmenting memory regions then even better, or just use the paging mechanism as a poor-man's-defragmentor.
|
|||
29 Nov 2016, 12:12 |
|
Roman 29 Nov 2016, 12:36
MrFox please compile to execute file your editor and give executable file !
I try compile your code in fasm 1.69 but get many errors ! |
|||
29 Nov 2016, 12:36 |
|
MrFox 29 Nov 2016, 14:22
Roman, post #2 contains the link where you can download the code and the executable file. The exec is .efi and the source is .asm and .inc files. Pay attention that this is a 32bit version.
Last edited by MrFox on 29 Nov 2016, 14:29; edited 1 time in total |
|||
29 Nov 2016, 14:22 |
|
MrFox 29 Nov 2016, 14:26
Revolution, yes. That's what I'm thinking about. I incline to my own defragmenter version.
|
|||
29 Nov 2016, 14:26 |
|
Roman 29 Nov 2016, 14:46
And how did i run efi file ?
I first time see format efi ! And why so hard ? Why not simple exe file ?! Why need use efi file ?! |
|||
29 Nov 2016, 14:46 |
|
MrFox 29 Nov 2016, 15:02
EFI files run in UEFI environment. It is a modern version of BIOS. You can't run them in any OS, only UEFI.
|
|||
29 Nov 2016, 15:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.