flat assembler
Message board for the users of flat assembler.

Index > Main > text edition

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
first i want to congratulate you ( Mr Tomasz Grysztar ) for his editors, fasmD and fasmW

second, i want to know, what is exactlly a segment in your source code? something like the real mode or pm segments?

third, i see that each line is assigned a segment, means that lines in editor are not in the same segment than others?

i have some problems to understand all these:
call segment... call memory... and else as i cannot represent to myself the background of the code...

if i ask this, it's because i'm coding my text editor, and it is really not like your...
as i cross problems for the insert char and delete char, i read your source...
and it doesn't help me anymore...


Last edited by edfed on 21 Dec 2007, 20:44; edited 2 times in total
Post 21 Dec 2007, 00:04
View user's profile Send private message Visit poster's website Reply with quote
phreak



Joined: 19 Dec 2007
Posts: 10
phreak
Nice! beautiful program!
Post 21 Dec 2007, 06:16
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
edfed,
I suppose, that this editor is a part of your planned OS (written fully in FASM, of course). Smile

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. Wink
Post 21 Dec 2007, 08:37
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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, Wink

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...
Post 21 Dec 2007, 09:25
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
edfed wrote:
altgr+e gives not euro, but something fun
Yes, I've noticed... it gives "erf" Laughing

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?
Post 21 Dec 2007, 10:02
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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...
Post 21 Dec 2007, 10:23
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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
Post 21 Dec 2007, 11:17
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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...
Post 21 Dec 2007, 16:57
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
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
    
Seems that your package doesn't contain file 'typematic.inc'. Confused
Post 21 Dec 2007, 19:23
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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
Post 21 Dec 2007, 19:33
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
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
    
Confused
Post 21 Dec 2007, 19:38
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
refresh_clear is renamed refresh..
i'lll simply make a new package...

sorry, but now, you have in hands the basic problems to resolve...


Description: to make a bootable version, simply include 'comloader.inc' at begining, and execute bootwriter on a floppy
Download
Filename: FEDIT.zip
Filesize: 30.04 KB
Downloaded: 158 Time(s)

Post 21 Dec 2007, 19:43
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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.
Post 21 Dec 2007, 19:47
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
Some user's suggestions (wishes Wink):
  • every editor should have possibility to open/save text file (yours haven't yet this feature, right?),
  • you should make some vertical scroll (now amount of text is limited),
  • some kind of 'readme.txt' with short description will be appreciated,
  • move all sources to subdirectory called, say, 'Sources' or similar,
  • after every change in sources update package in your first post in this thread (not ever user is telepathist and be able to guess, which changes must be made Wink).
Post 21 Dec 2007, 19:56
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
Crying or Very sad
i want make theses things you know...
thats why i made this thread, to have some help about text edition theory with FASM.


Description:
Filesize: 149.67 KB
Viewed: 5532 Time(s)

txteory.jpg


Post 21 Dec 2007, 20:42
View user's profile Send private message Visit poster's website Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
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.
Post 21 Dec 2007, 21:07
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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...
Post 21 Dec 2007, 21:17
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
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.
Post 05 Jan 2008, 03:18
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Come on!
Post 05 Jan 2008, 03:33
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
edfed: it is a called a linked list. And in this case you have described a double linked list.
Post 05 Jan 2008, 04:24
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.