flat assembler
Message board for the users of flat assembler.

flat assembler > IDE Development > Fresh 1.0.0D pre-alpha

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
A little early for 1.0.0D, but because of major changes to the project, here is current work version.
For the team: Now all global variables are in coresponding modules.
Please check your sources to use this new approach.

Regards.

History.inc
Code:
  [15.10.2003] v1.0.0D
        - Whole project rearanged to use 'globals.inc' macro library.
          This makes handling of global variables easy, but please,
          try to hold globals as little as posible.
        - added Messages window in the source editor. Still can't be hided.
        - Changes to the compiler interface. Still buggy, but now it can
          compile editor source to binary.

  [14.10.2003] v1.0.0D

        - Minor changes in gui.inc to allow definitions after the code using it.
        - First version of globals.inc macro library posted in the forum for
          evaluation.
    


[EDIT] Outdated attachement deleted. Check for version 1.0.0E [/EDIT]


Last edited by JohnFound on 17 Oct 2003, 20:04; edited 2 times in total
Post 15 Oct 2003, 16:52
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
GPF on write for me :/
... "0x040FF71" referenced memory at "0x00105E6E". The memory could not be "written" ...

btw, did you miss my question in another thread:
how do I get the TDesignTimeInfo of the currently selected component? Could you make some function for that, or some message to send to the project manager window?
(btw I noticed that you've changed the WinStyles, I missed to see that in the history (you'right 255 char should be more than enoguht for the name and desc. Must remeber to make some changes in to the code to reflect this change))

_________________
... 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
Post 15 Oct 2003, 17:19
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
Hi scientica.
Sorry, I missed that question. Every control in form designer have TBaseWin structure attached to it. But actually this is not TBaseWin, but derivative structure: TCustomControl. (Look at controls.inc) So, TCustomControl is extended form of TBaseWin and there is field .DesignInfo with pointer to TDesignTimeInfo structure of given control.

WinStyles is changed by incident, Smile visibly I used some old/work version of the macro. But it will make smaller data, so let it stay, if this is not very unhandy for you.

About GPF, I will check it just now, but it works good for me.
Post 15 Oct 2003, 17:51
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
Some bugfixes for GPF reported by Scientica. Please try do download and check it now.

Regards.
Post 15 Oct 2003, 18:21
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
Ok, good then I'll "only" need to make some adjust ments to the code.
Then I'd suggest changng "ofsTBaseWinPtr" to "ofsTCustomControlPtr".

I'll let the "size of"s be byte-sized instead of dword-sized, I'll just (iirc, unless I've been naughty in some procs Wink) have to change lodsd to lodsb Smile

[EDIT]Just posted, -- downloading new version now, wait 5 sek and I'll see how it went -- [/EDIT]

[EDIT2]The bug has been fixed, no crash so far Very Happy[/EDIT2]

_________________
... 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
Post 15 Oct 2003, 18:29
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
scientica wrote:
Then I'd suggest changng "ofsTBaseWinPtr" to "ofsTCustomControlPtr".


So, generally you are right, but there is some blurry things, because the forms for now have no Designtime info. I will change it soon, because I want to make forms and components to behave uniformly.

BTW: If you need some changes in TDesignTimeInfo related with Style editor, please post a message and I will change it. (The same applyes to WinStyle macro too. If you prefere to have dwords for length, simply say. Smile )

Regards.
Post 15 Oct 2003, 18:41
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
Maybe it's the best to let it be byte sized - the strings are just intended to be short/brief descriptions and names, putting a 255 chars limit will avoid long fariy tales about the controlls.

Just noticed, there are two versions of designtime.inc, one in the source dir and one in the Source\Doc\designtime\

Here is a suggestion on changes thought:
Code:
macro  WinStyles [_nme, _value, _dsc] {
  common
    local index
    index = 0
  forward
    index = index + 1
  common
   dd index             ; The first dword is count of the items in the list.

  forward
    local name, namelen, hint, hintlen

; Style value
            dd  _value

; Style name - Pascal string - the first byte is length of the string.
            db  namelen
    name    db  _nme, 0
    namelen =   $ - name
    if namelen > 255
        display '&lt;E&gt; Too long name, must be <256 chars.'
        halt
    end if

; Style description - Pascal string.
            db  hintlen
    hint    db  _dsc, 0
    hintlen =   $ - hint
    if hintlen > 255
        display '&lt;E&gt; Too long hint, must be <256 chars.'
        halt
    end if
}
    

_________________
... 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
Post 15 Oct 2003, 19:32
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
OK, scientica. I am agree 100%. Smile
Post 15 Oct 2003, 19:47
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
decard



Joined: 11 Sep 2003
Posts: 1095
Location: Poland
Heh nice Wink
I was afraid if data macroses could slow down compilation, but it wasn't significant.
I wanted to include finddate.inc in findreplace.asm but John did it for me Smile
John: I'm just curious, but why message window is as an AsmEdit?
Post 15 Oct 2003, 20:06
View user's profile Send private message Visit poster's website Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3500
Location: Bulgaria
decard wrote:
John: I'm just curious, but why message window is as an AsmEdit?


So, I wanted to try something. It is already not AsmEdit in my version. Very Happy
Post 15 Oct 2003, 20:09
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2019, Tomasz Grysztar.

Powered by rwasa.