The MASM Forum Archive 2004 to 2012
Welcome, Guest. Please login or register.
September 25, 2021, 03:09:27 AM

Login with username, password and session length
Search:     Advanced search
128553 Posts in 15254 Topics by 684 Members
Latest Member: mottt
* Home Help Search Login Register
+  The MASM Forum Archive 2004 to 2012
|-+  General Forums
| |-+  The Campus
| | |-+  RichMasm: an editor that remembers your formatting
« previous next »
Pages: 1 [2] 3 4 Print
Author Topic: RichMasm: an editor that remembers your formatting  (Read 52572 times)
jj2007
Member
*****
Gender: Male
Posts: 6011



RichMasm: Version 24 September
« Reply #15 on: September 23, 2008, 03:00:30 AM »

Version of 24 September fixed a harmless bug (text scrolled when typing something in the Find box), and greatly enhanced the Ctrl K insert hyperlink feature.
« Last Edit: July 22, 2009, 10:29:52 AM by jj2007 » Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: most needed code snippets?
« Reply #16 on: September 23, 2008, 11:06:58 PM »

Version 24 September attached right above:

- Hyperlinks now fully functional, either by pressing Ctrl K or by selecting Format/Insert link. If http: or x:\file.ext are present on clipboard, the edit field will be prefilled.
- Right-click to edit an existing link.
- F4 toggles comments (if first non-whitespace char is ;, then all comments will be removed, if not, ; will be added to all selected lines)
- New Win & Console app option added to File menu
- Build & run option added to File menu
- if int 3 is present, F6 assembles, links and starts OllyDbg; for console apps, the nagging console window will be automatically minimised
Suggestions welcome, of course BigGrin
« Last Edit: September 24, 2008, 07:06:15 AM by jj2007 » Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



RichMasm: text anchors added
« Reply #17 on: September 29, 2008, 10:02:28 PM »

In addition to "normal" hyperlinks, version 30 September 08 has now text anchors, i.e. you can create html-like anchors in a document to which you can link. Example:

(page 5):
   mov ecx, hList
   .if ShowLB      ; attention may be reset by this procedure
      mov ecx, hRE
      mov eax, BST_UNCHECKED
   .endif

(page 25)
   .if ShowLB
      or ecx, -1
      mov eax, BST_CHECKED
      and ShowLB, 0
   .endif

This feature turned out to be pretty complex, but it seems stable now - feedback and bug reports wanted...

RichMasm saves a temporary plain text file to disk, then launches ml.exe. Internally, an anchor is preceded by a 5 letter (hidden) code telling RichMasm its name and length. This code will obviously be removed before launching the build process. In practice, this means your text anchor can be embedded in the code. The link, however, will not be removed, and therefore must appear in a comment.

Edit: Fixed a minor bug that caused unexpected scrolling.
See top of thread for latest attachment.
« Last Edit: July 22, 2009, 10:29:20 AM by jj2007 » Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #18 on: October 07, 2008, 10:24:51 AM »

See top of thread for latest version.
« Last Edit: July 22, 2009, 10:15:01 AM by jj2007 » Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #19 on: October 09, 2008, 10:45:29 PM »

Version 10 October, attached above: Improved reading in of plain text sources. Bookmarks are now generated for .data, .data?, .code, macros, procs, and a number of WM_ messages. The guide contains a little table with links to the Masm32 examples.
Logged

hutch--
Administrator
Member
*****
Posts: 12013


Mnemonic Driven API Grinder


Re: RichMasm: an editor that remembers your formatting
« Reply #20 on: October 10, 2008, 01:09:52 AM »

BigGrin

JJ,

If you ever succeed in getting RichMasm comprehendable to mere mortals it could end up a dangerous weapon. No the important question apart from what you have designed it to do is can it make good cappachino ?

Keep up the good work.  ThumbsUp
Logged

Regards,



Download site for MASM32
http://www.masm32.com
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #21 on: October 10, 2008, 08:22:34 AM »

dangerous weapon

I am working on it, as the snippet below shows - for notebooks only, unfortunately.

Code:
CheckQuality proc
  call AnalyseCode
  .if NoobScore>20
invoke PlayMidi, chr$("ViolentLaughter.mid")
  .elseif BadCodeScore>20
call CloseCoverAndSmashProgrammersHands
  .else
MsgBox hWnd, chr$("Compliments, your code is fine!"),
addr AppName, MB_OK
  .endif
  ret
CheckQuality endp

Quote
Now the important question apart from what you have designed it to do is can it make good cappuccino?

Now you caught me in the act, Hutch! But I am having problems with the hardware interface. Anybody aware of standard protocols for communicating with a coffee machine?

Quote
Keep up the good work.  ThumbsUp

You too ThumbsUp
By the way: I have added a couple of links to the \masm32\examples section into the manual. Usage should be simple enough for mere mortals: Click on the link, and hit F6 when you see code. Afaik they all assemble fine and don't need the build.bat any more... \masm32\RichMasm\bldallRM.bax has some goodies, but beware, I don't check if it has been changed, so every new installation will overwrite the bax.
« Last Edit: October 10, 2008, 11:38:14 AM by jj2007 » Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #22 on: March 17, 2009, 09:43:20 AM »

RichMasm has been updated - see above below the screenshot.

Major changes:
- a recent files menu aka MRU (most recently used)
- a template for using TIMERS.ASM (under File/New Masm source)
- assembly output now integrated
- jumps directly to the error line where possible
- autoformat for blocks with ugly formatting
- under the hood: added SSE2 for faster strlen

Feedback welcome, of course.

EDIT: The search function has been improved. Example:

Find uMsg*VK will find all lines where VK follows uMsg. Problem: They are not in the same line...

  .elseif uMsg==WM_KEYDOWN
   .if wParam==VK_RETURN

Find uMsg**VK will find the block above. And in case you have something like this:

  .elseif uMsg==WM_CHAR   ; KeyFiles
   ; status wParam, chr$("CHAR ")
   .if wParam==VK_SPACE || wParam==VK_RETURN

... just add one star more: Find uMsg***VK will find VK within the next two lines.
Logged

lingo
Member
*****
Posts: 625



Re: RichMasm: an editor that remembers your formatting
« Reply #23 on: March 17, 2009, 01:12:25 PM »

Not a big deal but I can't see the menu titles
under Windows 64 bit Vista Ultimate SP1.

[attachment deleted by admin]
Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #24 on: March 17, 2009, 05:07:30 PM »

Not a big deal but I can't see the menu titles
under Windows 64 bit Vista Ultimate SP1.

Thanks, Lingo. It seems that Vista doesn't like painting on the Window DC. "Not a big deal" is an understatement wink
Logged

lingo
Member
*****
Posts: 625



Re: RichMasm: an editor that remembers your formatting
« Reply #25 on: March 17, 2009, 07:52:58 PM »

"Not a big deal" is an understatement"

"Not a big deal" means Vista has special properties options for exe files and if we mark "Disable desktop composition" option
from Properties\Compatibility of the richmasm.exe all appears OK...



[attachment deleted by admin]
Logged
jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #26 on: March 17, 2009, 08:07:54 PM »

if we mark "Disable desktop composition" option from Properties\Compatibility of the richmasm.exe all appears OK...


Ok, I admit you are a genius BigGrin
Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #27 on: March 31, 2009, 10:27:04 PM »

Update above, below the screenshot.

Handling of linker warnings is now improved, see OPT_NoWarn in File/Configure project.
Logged

jj2007
Member
*****
Gender: Male
Posts: 6011



Re: RichMasm: an editor that remembers your formatting
« Reply #28 on: May 14, 2009, 09:40:35 AM »

Update above, below the screenshot. Main change: a "Last good version" in the File menu allows to revert to the last version that assembled & linked without errors. Can be a handy feature BigGrin
Logged

UtillMasm
Member
*****
Posts: 560

Please use a non offensive avatar


Re: RichMasm: an editor that remembers your formatting
« Reply #29 on: May 16, 2009, 04:20:37 AM »

Your editor look good. When will you post code? I guess I can speak for everybody when I say we are curious. tgrin
Logged
Pages: 1 [2] 3 4 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum Archive 2004 to 2012 | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!