flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > FASMW caption |
Author |
|
vid 21 Jun 2006, 09:15
i would appreciate name of currently edited file in caption of FASMW, like "MASMSUCK.ASM - Flat Assembler 1.66" etc.
|
|||
21 Jun 2006, 09:15 |
|
comrade 21 Jun 2006, 17:58
vid, I have a mod for it. I was going to post it on my page but never got around to it. The mod also contains external debugger support via F8 keyboard key.
|
|||||||||||
21 Jun 2006, 17:58 |
|
vid 21 Jun 2006, 18:10
thx
|
|||
21 Jun 2006, 18:10 |
|
Mr_Silent 22 Jun 2006, 01:57
comrade wrote: vid, I have a mod for it... Nice, but not perfect - if U try to save 'untitled' with some name, that name won't go into the main title (though it will appear in the tabcontrol) Here is what I came to... FasmW.asm Code: ................ section '.data' data readable writeable ; Silent: changed caption _caption db ' - flat assembler ',VERSION_STRING,0 ; Silent: made new fields ; new buffer for modified caption cap_buf db 0 ; pre-init empty string rb 255+32 ; reserve ; end new var ................ fmopen: ... set_asmedit_text: invoke SendMessage,[hwnd_asmedit],WM_SETTEXT,0,dword [esp] call [VirtualFree] mov eax,ebx ; Silent: Hook :/ _cap_out: ; escapes handler with updating invoke SendMessage,[hwnd_tabctrl],TCM_GETCURSEL,0,0 ; GetCurrentItem invoke SendMessage,[hwnd],FM_SELECT,eax,0 ; SetCurrentItem xor eax,eax jmp finish ; end hook - folows original load_out_of_memory: invoke CloseHandle,ebx ..................... fmsave: ... invoke SendMessage,[ei.hwnd],EM_EMPTYUNDOBUFFER,0,0 invoke SendMessage,[hwnd_status],SB_SETTEXT,1,_null xor eax,eax ; Silent: Another hook jmp _cap_out ;WAS jmp finish ; end hook - folows original save_out_of_memory: invoke CloseHandle,ebx ..................... fmselect: ; Silent: start_fix mov [ei.header.mask],TCIF_PARAM+TCIF_TEXT ; WAS mov [ei.header.mask],TCIF_PARAM mov eax,cap_buf ; also prep. our text buffer mov [ei.header.pszText],eax ; mov [ei.header.cchTextMax],255 ; ; invoke SendMessage,[hwnd_tabctrl],TCM_GETITEM,[wparam],ei ; original line ; invoke lstrcat,[ei.header.pszText],_caption ; filename + (fasm_caption + version) invoke SendMessage,[hwnd],WM_SETTEXT,0,[ei.header.pszText] ; setting new caption ; end_fix - folows original invoke GetWindowLong,[hwnd_asmedit],GWL_STYLE ................................. import kernel,\ .... lstrcat,'lstrcatA' Oogly, but works... Last edited by Mr_Silent on 22 Jun 2006, 05:45; edited 2 times in total |
|||
22 Jun 2006, 01:57 |
|
comrade 22 Jun 2006, 03:30
How do you know that I hadn't left out the "Untitled - flat assembler" case by design?
|
|||
22 Jun 2006, 03:30 |
|
Mr_Silent 22 Jun 2006, 04:06
comrade wrote: How do you know that I hadn't left out the "Untitled - flat assembler" case by design? I didn't tell that Untitled should be in... I said, when you give your file REAL name (like 'MASMSUCK.ASM') by saving, this new name won't appear in caption. EDITED: I've changed the code. Placing cap_buf at the end of .udata section resulted in additional 38kb of .exe size... M-m-m-m... Reason, anyone? |
|||
22 Jun 2006, 04:06 |
|
comrade 22 Jun 2006, 06:32
Because you caused a lot of unitialized before cap_buf to become uninitialized.
cap_buf db 0 by itself is initialized data |
|||
22 Jun 2006, 06:32 |
|
comrade 09 Jul 2008, 17:56
Just want to let you know I updated my FASMW modifications to the latest version (IDE version 0.93.15.0 that comes with FASM 1.67.26).
You can find them here: http://comrade.ownz.com/docs/fasm.html#idemods The modifications are:
|
|||
09 Jul 2008, 17:56 |
|
Tomasz Grysztar 09 Jul 2008, 18:01
comrade wrote:
This was actually intentional that it uses default 'Yes' when you close with Esc or Alt+X, and 'No' when you close with Alt+F4 - as I personally use Alt+F4 only when I just want to get rid of the windows, discarding whathever is there. Once again a kind of interface weirdness adapted to my own habits. Sorry. |
|||
09 Jul 2008, 18:01 |
|
comrade 09 Jul 2008, 20:24
Tomasz, I've spoken to you about this many years ago, but what do you think of putting in external debugger support to FASMW IDE? Your idea before was to keep out of the main IDE then, because you eventually wanted to add integrated debugging support to the IDE itself. Since that didn't come about (or is it going to come about? ), I am reasking the question.
|
|||
09 Jul 2008, 20:24 |
|
Tomasz Grysztar 09 Jul 2008, 22:31
Well, if I succeed to finally design the long-promised fasm's full debug info format, it will become achievable.
|
|||
09 Jul 2008, 22:31 |
|
DOS386 11 Jul 2008, 08:32
> to finally design the long-promised fasm's full debug
Create a new debug format ? Why not support an existing one (DWARF/STAB) ? Many people miss it (OTOH I actually have no idea how they work ) |
|||
11 Jul 2008, 08:32 |
|
comrade 11 Jul 2008, 14:47
What is DWARF/STAB? Isn't MS PDB the most useful format (in terms of being the most popular)?
|
|||
11 Jul 2008, 14:47 |
|
crc 11 Jul 2008, 23:48
Quote: What is DWARF/STAB? Isn't MS PDB the most useful format (in terms of being the most popular)? DWARF and STAB are more common on Unix-like systems. PDB is a proprietary file format, and isn't documented as well as DWARF or STAB if I remember correctly. |
|||
11 Jul 2008, 23:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.