flat assembler
Message board for the users of flat assembler.
Index
> Main > text edition Goto page 1, 2 Next |
Author |
|
phreak 21 Dec 2007, 06:16
Nice! beautiful program!
|
|||
21 Dec 2007, 06:16 |
|
MHajduk 21 Dec 2007, 08:37
edfed,
I suppose, that this editor is a part of your planned OS (written fully in FASM, of course). One comment: you use French keyboard layout, what could be slightly surprising for the (English) user (to type numbers user should press 'Shift' or 'CapsLock' key with '1', '2', ..., '9', '0'). BTW, Name of FASM creator is Tomasz Grysztar. |
|||
21 Dec 2007, 08:37 |
|
edfed 21 Dec 2007, 09:25
ho , ok
if you want, i can make an english layout for fasm forumers.... if and only if...you want! but, when you give me english layouted programs, as i know the differences, i can type english layout with frensh keyboard, or, you can make it yourself...it's easy, hem, not so easy, because you must change Two files, scancode.inc and keyhdle.inc altgr+e gives not euro, but something fun, typing F1 to F12, with conjunction of shift gives an other thing very fun... all is done by the same algorythm, keyhandle sorry for the I in place of Y, in french, we rarely use the Y so Mr Tomasz Grysztar... |
|||
21 Dec 2007, 09:25 |
|
MHajduk 21 Dec 2007, 10:02
edfed wrote: altgr+e gives not euro, but something fun Accordingly to keyboard layout - I propose you to make possibility in choosing between French and English layout. Maybe you should add some hot-keys combination for this purpose? |
|||
21 Dec 2007, 10:02 |
|
edfed 21 Dec 2007, 10:23
easy, in conjunction to my int9, it is really easy and i can add key timings
for exemple, frensh = altgr + F + R english = altgr + E + N let's go.... you can try if you want... |
|||
21 Dec 2007, 10:23 |
|
edfed 21 Dec 2007, 11:17
done
usa layout equates: us keyboard altgr+a+s fr keyboard altgr+f+r theses two files are needed just replace original files with them and compile fedit.asm scancode.inc is still for frensh layout, so key.a is your key.q key.q is your key.a etc... Last edited by edfed on 21 Dec 2007, 20:46; edited 1 time in total |
|||
21 Dec 2007, 11:17 |
|
edfed 21 Dec 2007, 16:57
hem hem, to the ones how loaded Fedit.asm, it needs the complete package in fedit.zip and the Khdle.inc file to works...
without them, you cannot do anything... |
|||
21 Dec 2007, 16:57 |
|
MHajduk 21 Dec 2007, 19:23
I tried to recompile new version of 'FEDIT.ASM', but I get this error:
Code: c:\documents and settings\mikolaj\pulpit\fedit\fedit>fasm "c:\documents and settings\mikolaj\pulpit\fedit\fedit\FEDIT.ASM" flat assembler version 1.67.23 (154810 kilobytes memory) c:\documents and settings\mikolaj\pulpit\fedit\fedit\FEDIT.ASM [68]: include 'typematic.inc' error: file not found. Process completed, Exit Code 2. Execution time: 00:00.359 |
|||
21 Dec 2007, 19:23 |
|
edfed 21 Dec 2007, 19:33
hé hé, rename edit.inc or modify include 'tymematic.inc' by 'edit.inc'
sorry, it's because i want to have short functions names, old name was typematic new name is edit so replace all typematic references by edit |
|||
21 Dec 2007, 19:33 |
|
MHajduk 21 Dec 2007, 19:38
OK, see what I've get now:
Code: c:\documents and settings\mikolaj\pulpit\fedit\fedit>fasm "c:\documents and settings\mikolaj\pulpit\fedit\fedit\FEDIT.ASM" flat assembler version 1.67.23 (107403 kilobytes memory) c:\documents and settings\mikolaj\pulpit\fedit\fedit\FEDIT.ASM [14]: call refresh_clear error: undefined symbol. Process completed, Exit Code 2. Execution time: 00:01.156 |
|||
21 Dec 2007, 19:38 |
|
edfed 21 Dec 2007, 19:43
refresh_clear is renamed refresh..
i'lll simply make a new package... sorry, but now, you have in hands the basic problems to resolve...
|
|||||||||||
21 Dec 2007, 19:43 |
|
edfed 21 Dec 2007, 19:47
one precision, this fedit is one of my first code, made during october 2005.
i didn't touch it since this date, because i've conclude that i first need a real good method and librairy now, i reopen the file, and try to adapt it with my new stable style. but it's hard. |
|||
21 Dec 2007, 19:47 |
|
MHajduk 21 Dec 2007, 19:56
Some user's suggestions (wishes ):
|
|||
21 Dec 2007, 19:56 |
|
edfed 21 Dec 2007, 20:42
i want make theses things you know... thats why i made this thread, to have some help about text edition theory with FASM.
|
||||||||||
21 Dec 2007, 20:42 |
|
MHajduk 21 Dec 2007, 21:07
I think, that choosing the constant-width font (as Courier) should solve some problems at beginning - you could treat text simply as a table of characters.
BTW, you haven't to refresh all text in real time during edition - only this fragment, which is currently "visible" in the editor's window IMHO. |
|||
21 Dec 2007, 21:07 |
|
edfed 21 Dec 2007, 21:17
hum, yes, i know... but the hard trick, is to choose the best way to do that since the begining of the projects, to avoid high time cost correction feedback...
if i try all the possibilities, i don't have enough of my life to do so... |
|||
21 Dec 2007, 21:17 |
|
edfed 05 Jan 2008, 03:18
string list, that is the solution for a lot of problems in text edition.
Code: char: null=0 ; null value, correspond to; "no prev/next address". prev=0 ;prev is the address of previous char cur=4 ;cur is the value of the char next=8 ;next is the address of next char to insert/delete a char, simply modify the next value of previous char, previous value of next char, and both values for current char... need a lot of memory, 12bytes/char in 32 bits, 12 times the normal size of displayed text. |
|||
05 Jan 2008, 03:18 |
|
LocoDelAssembly 05 Jan 2008, 03:33
Come on!
|
|||
05 Jan 2008, 03:33 |
|
revolution 05 Jan 2008, 04:24
edfed: it is a called a linked list. And in this case you have described a double linked list.
|
|||
05 Jan 2008, 04:24 |
|
Goto page 1, 2 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.