flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > IDE Development > flat editor 3.11

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland
flat editor 3.11
I have updated the fasmw and fasmd packages with a new version of flat editor core, 3.11 beta 1. I marked it as "beta" because this update required some changes in critical sections of fedit's code and I'm not entirely sure that I have not introduced some new bugs this way. If you encounter any problems, please let me know ASAP.

The new feature that comes with this update is the long-missing Redo operation. To clarify, since "redo" may have a bit different meaning in various applications: this operations allows to reverse the "undo" operation, so if you pressed "undo" key too many times and lost some important text, you can now use "redo" to get this text back.
Post 12 Jul 2014, 10:57
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland
And here comes the updated documentation for the flat editor core.


Description: flat editor core documentation
Download
Filename: fedit_core.zip
Filesize: 5.42 KB
Downloaded: 213 Time(s)

Post 12 Jul 2014, 11:48
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 653
Could you also add additional colors for registers, cpu instructions, and memory sizes (byte, dword, qword, ect)? I currently have something that works, but it would be nice to add it to the official version.

It is much easier on the eyes if the registers and instructions have different colors than the labels and other stuff...
Post 13 Jul 2014, 01:22
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1907
> I have updated the fasmw and fasmd packages with a
> new version of flat editor core, 3.11 beta 1

COOL Smile unfortunately the compiler core is bug-free, so the package version is still 1.71.21 ... I'll test Smile

http://board.flatassembler.net/download.php?id=2714 (obsolete TXT)
http://board.flatassembler.net/download.php?id=6782 (3.11 beta ZIP)

What about an optional "no-undo" mode ?
Post 13 Jul 2014, 11:14
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

DOS386 wrote:
COOL Smile unfortunately the compiler core is bug-free, so the package version is still 1.71.21 ... I'll test Smile


That's why the download page presents the data of packages, as it is in fact a secondary version information.
fasmw at least presents the version of fedit core in the "About" box, do you suggest adding something similar for fasmd?


DOS386 wrote:
What about an optional "no-undo" mode ?

As it's quite easy to implement such mode, I added it into fedit core in "3.11 beta 2". But it's unusable in IDE without adding a key to turn this mode on. I need to invent some good key combination for this (it can be for fasmd only).
Post 13 Jul 2014, 19:45
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

tthsqe wrote:
Could you also add additional colors for registers, cpu instructions, and memory sizes (byte, dword, qword, ect)? I currently have something that works, but it would be nice to add it to the official version.

It is much easier on the eyes if the registers and instructions have different colors than the labels and other stuff...

As there are many possible variants of the syntax highlighting, I wanted to leave it to the plugins... for the fasmw's plugin system that I still have not made.
Post 13 Jul 2014, 19:47
View user's profile Send private message Visit poster's website Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 653

Quote:
As there are many possible variants of the syntax highlighting, I wanted to leave it to the plugins... for the fasmw's plugin system that I still have not made.



So adding three more colors to the list would be too much work? I already have the list of keywords written out; it would probably take about 5 minutes to paste them into the main dev line.
Post 14 Jul 2014, 17:14
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

tthsqe wrote:
So adding three more colors to the list would be too much work? I already have the list of keywords written out; it would probably take about 5 minutes to paste them into the main dev line.

fasm's core already knows all the keywords it knows, so it is not a problem of having a list. What I meant is not that it would be much work, but that there are various possible variants of what should be highlighted and in what way, and therefore I think it would be more appropriate to leave these decisions to plugins. The core contains just the universal highlighting that I like, any further customisation is up to others (the only real problem being that I still did not provide the promised plugin API).
Post 14 Jul 2014, 19:03
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1907
> fasmw at least presents the version of fedit core in the "About"
> box, do you suggest adding something similar for fasmd?

YES I do ... IIRC I even tried to implement such a thing http://board.flatassembler.net/topic.php?t=9494 6 years ago

> > What about an optional "no-undo" mode ?

> As it's quite easy to implement such mode, I added it into fedit
> core in "3.11 beta 2". But it's unusable in IDE without adding a key
> to turn this mode on. I need to invent some good key combination
> for this (it can be for fasmd only).

COOL. Should I propose some key combination ? Here:

ALT-DEL -> clears possible existing undo data and switches to no-undo mode

ALT-DBS -> undo if there is some undo data, otherwise switch to yes-store-undo-data mode
Post 15 Jul 2014, 07:46
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

DOS386 wrote:
ALT-DEL -> clears possible existing undo data and switches to no-undo mode

ALT-DBS -> undo if there is some undo data, otherwise switch to yes-store-undo-data mode

This is a good idea. I implemented it right away.

I decided to limit it to FASMD though. It is only there where some serious limitations of memory space may occur. And this feature has an unfortunate side-effect: when you disable the "undo" and then editor runs out of memory, it will not be able to restore the state to the one from before the operation that caused it. You may end up with half-finished operation and even possibly corrupted text.
Please let me know if this feature is useful for you as you hoped.
Post 15 Jul 2014, 16:50
View user's profile Send private message Visit poster's website Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1907
> then editor runs out of memory, it will not be able to restore the
> state to the one from before the operation that caused it. You may
> end up with half-finished operation and even possibly corrupt

Oops I see ...

> Please let me know if this feature is useful for you as you hoped.

Thanks, I'll test
Post 31 Jul 2014, 19:54
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 653
Thomasz, can you make the plugin interface and provide some documentation? I would like to make a dll for syntax highlighting.
Post 01 Aug 2014, 02:50
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 339
Location: ukraina
Tomasz, i understand your decision not to be obtrusive with the colors. How about adding color options initially set to [i]Text color[i/] and than a person configures those whatever.
Post 13 Jan 2015, 06:38
View user's profile Send private message Send e-mail Reply with quote
Matrix



Joined: 04 Sep 2004
Posts: 1171
Location: Overflow
Hey Tomasz

I have an idea for your IDE, It could generate the binary on-the-fly after typing a valid instruction or after hitting enter and display it in a left row in hex for example Smile

In addition when you are done writing your asm code you have to wait only 10 microseconds for compilation approximately instead of waiting 10 milliseconds, that is a big improvement Wink
Post 13 Jan 2015, 09:32
View user's profile Send private message Visit poster's website Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 515
Location: Munich

Matrix wrote:
Hey Tomasz

I have an idea for your IDE, It could generate the binary on-the-fly after typing a valid instruction or after hitting enter and display it in a left row in hex for example Smile

In addition when you are done writing your asm code you have to wait only 10 microseconds for compilation approximately instead of waiting 10 milliseconds, that is a big improvement Wink



ASM code is not that easy - think of labels, inserting instructions somewhere and you have to compile all following instructions (maybe previous as well regarding labels). So I think this features wouldn't help at all. An (intrinsic) automatic listing generation after compilation would be more useful I think. Wink

@Tomasz
I didn't catch this update - is it included with the latest FASMW version ? Does it replace the version 0.95.11 of the editor ? Because it is a big jump in release number.
Post 23 May 2015, 20:04
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

shutdownall wrote:
@Tomasz
I didn't catch this update - is it included with the latest FASMW version ? Does it replace the version 0.95.11 of the editor ? Because it is a big jump in release number.

The 0.9x is the version of fasmw interface and it does not change that much. The 3.11 is the version number of flat editor, which is a control used by both fasmw and fasmd. You can find some notes about fedit versions in the thread about fasm 1.71.17 release.
Post 24 May 2015, 10:37
View user's profile Send private message Visit poster's website Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 515
Location: Munich
Do I understand that right:
flat editor is used from FASMW and FASMD - so the functions announced (REDO for example) are part of the latest FASM version ? So I guess flat editor is not a software which can be used standalone. It is the underlying library of the FAMSW editor and maybe of other IDE's like Fresh IDE ?

Just a guess and to be sure about the details. Wink
Post 24 May 2015, 11:33
View user's profile Send private message Send e-mail Reply with quote
idle



Joined: 06 Jan 2011
Posts: 339
Location: ukraina
How can a one integrate flat editor control in a side app using as less steps as possible?
Such an example (in fasm for windows package) is greatly appreciated.
Post 09 Jul 2015, 14:32
View user's profile Send private message Send e-mail Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6355
Location: Kraków, Poland

idle wrote:
How can a one integrate flat editor control in a side app using as less steps as possible?


The fasm DLL package contains the source of FEDIT.DLL and ASMDEMO from the same package demonstrates how to use it - it loads DLL with LoadLibrary and then uses the FEDIT class in its dialog box definition.
Post 09 Jul 2015, 14:55
View user's profile Send private message Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 339
Location: ukraina

Code:

;Hi TG, next message extension to FEDIT control desired:
  FEM_SELECTALL ;to select all text
  FEM_GETSEL    ;mod it to also return TRUE if any selection present



tnx
Post 19 Feb 2016, 16:29
View user's profile Send private message Send e-mail 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.