Author Topic: A guide to the RichMasm editor  (Read 61334 times)

LordAdef

  • Member
  • ****
  • Posts: 669
Re: A guide to the RichMasm editor
« Reply #60 on: January 25, 2018, 08:39:07 AM »
here is the idea, let me know what you think about it:

Create a TreeView with a couple of parents:

Structures
Procedures
Macros
...search the code and populate the childs with.


Possible?

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #61 on: January 25, 2018, 08:57:42 AM »
Yes, that's possible. EM_FINDTEXT is your friend...

I just checked if you can create controls, too - yes, it works, see attachment.
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
GDI+ bubble help
« Reply #62 on: April 26, 2018, 10:04:10 PM »
The flat GdiPlus API has been added to RichMasm's bubble help feature - example below. See the RichMasm beta with bubble help for WinAPI post for details.
« Last Edit: November 23, 2019, 04:53:23 PM by jj2007 »
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

HSE

  • Member
  • *****
  • Posts: 2253
  • AMD 7-32 / i3 10-64
Re: A guide to the RichMasm editor
« Reply #63 on: July 05, 2018, 01:07:27 AM »
Work this RichMasm.ini part ?:
Code: [Select]
ColFg=0AAAAAAh ; default text colour
Fg8=0B0B0B0h ; light gray
Fg16=0A0h ; dark red
Fg24=0A00000h ; dark blue
Fg32=0aaaah ; dark yellow
Fg40=0ffffffh ; white
Fg48=0FFFFFh ; green

Thanks
Equations in Assembly: SmplMath

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #64 on: February 12, 2019, 10:08:50 PM »
Yes it works. Open \Masm32\MasmBasic\Res\RichMasm.ini and edit as follows:

Code: [Select]
ColBg=0FFFFE0h ; default, turquois **** DO NOT CHANGE THE ORDER OF THESE ENTRIES! ****
...
ColFg=0 ; default text colour

New version:
Code: [Select]
ColBg=0 ; pitch black **** DO NOT CHANGE THE ORDER OF THESE ENTRIES! ****
...
ColFg=ffffh ; default text colour YELLOW in BGR notation!

Restart RichMasm to see the effect.
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
Images in RichMasm
« Reply #65 on: August 03, 2019, 05:56:55 PM »
Sometimes I feel the need to embed an image into a source. Here, for example, an image showing the format of a REAL10 number is useful in the context of the Fcmp macro:



How is it done? In RichMasm,
- put the text cursor to the end of a comment
- click menu "Open" and select an image
- say "yes" to the "Insert image?" box
- say "OK" to the "Click and move now" box
- click into the image and move it
- when it's at the right position, click again 8)
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
All opcodes in a handy format
« Reply #66 on: February 21, 2020, 12:23:39 AM »
Attached a slightly updated version of the AllOpcodes.rtf document. You can open it in WordPad or MS Word or any other editor that understands Rich Text Format.

Of course, I use RichMasm. If the rtf hangs around at \Masm32\RichMasm\Help\AllOpcodes.rtf, it will appear in RichMasm's Help menu: Select an instruction, e.g. add, then hover over the Help menu until it opens and click All Opcodes. The listbox will fill as follows:
Code: [Select]
ADD Add
ADDPD Packed Double-Precision Floating-Point Add
ADDPS Packed Single-Precision Floating-Point Add
ADDSD Scalar Double-Precision Floating-Point Add
ADDSS Scalar Single-Precision Floating-Point Add
ADDSUBPD Packed Double-FP Add/Subtract
ADDSUBPS Packed Single-FP Add/Subtract
FADD/FADDP/FIADD Add
FADD/FADDP/FIADD Add
FADD/FADDP/FIADD Add
HADDPD Packed Double-FP Horizontal Add
HADDPS Packed Single-FP Horizontal Add
PADDB/PADDW/PADDD Packed Add
PADDB/PADDW/PADDD Packed Add
PADDB/PADDW/PADDD Packed Add
PADDQ Packed Quadword Add
PADDSB/PADDSW Packed Add with Saturation
PADDSB/PADDSW Packed Add with Saturation
PADDUSB/PADDUSW Packed Add Unsigned with Saturation
PADDUSB/PADDUSW Packed Add Unsigned with Saturation
PMADDWD Packed Multiply and Add

Another technique that I often use for my libraries is to make a comment, e.g. ; opcodes, then select opcodes and press Ctrl K to insert a hyperlink. In this case, as shown in the screenshot below, it could be \masm32\RichMasm\help\AllOpcodes.rtf#fptan--, where the red part instructs RichMasm to open the rtf, then search immediately for the string fptan--. With one click on the link, you go straight to the entry where the fptan instruction is explained.
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

TioPepperoni

  • Regular Member
  • *
  • Posts: 3
Re: A guide to the RichMasm editor
« Reply #67 on: April 02, 2020, 02:38:44 PM »
Hey guys, I'm running into issues with RichMasm in general, I have been trying to get this to work but, sadly, it's misbehaving for me, first of all, I have installed MASM32, and it installed just fine, I got everything successfully compiled and up to the ending success message... So following that, I got the latest MasmBasic from this post over here: http://masm32.com/board/index.php?topic=94.msg264#msg264

After I followed all the instructions line by line, I got to install it under `\Masm32\` where Masm32 is located and where it was recommended.

I open RichMasm and was excited enough to finally give it a try when, it started to misbehave... for starters, clicking links, won't follow the actual link, it will just open `\Res\` directory, for anything that I click on the green area... (Main Guide), so I said, what the heck, let me try now with another thing, I followed some steps on how to create a new simple Masm app, by going to `File -> New File/Masm Source` and tried that, with no avail, it simply won't work.. I'm frustrated, because I really wanted to give this a try... any ideas what I did wrong or what could possibly went wrong, or why does it simply works for me?

System Specs:
- OS: Windows 10 Pro (x64)
- Version: 1903
- Build: 18362.720

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #68 on: April 02, 2020, 07:31:01 PM »
Hi Tio,

Sorry for that. It seems that your Windows version does something odd concerning links (note I don't blame your Windows installation, but it works on mine, including Windows 10, so I'd like to understand what's wrong...). Three short questions:

- when you hit F6 in the main help file, does it build and show the box "Wow, it works"?

- When you click the menu File/New Masm source, does it open a greenish box to the right that starts with Click to open a template, then hit F6 to run it:?

- is the editor at ?:\Masm32\MasmBasic\RichMasm.exe?

Thanks for your feedback :thup:
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

TioPepperoni

  • Regular Member
  • *
  • Posts: 3
Re: A guide to the RichMasm editor
« Reply #69 on: April 03, 2020, 11:05:28 AM »
HI JJ!!! IT WORKS NOW!!! (uppercaps intended because I'm overly excited! hahaha)



All I had to do was to install FileFormatConverter downloaded from: https://download.cnet.com/Microsoft-Office-Compatibility-Pack-for-Word-Excel-and-PowerPoint-File-Formats/3000-18483_4-10648733.html

and everything works like a charm now!! WOOOW! I always skipped that little messagebox at the beginning of loading the actual `MbGuide.rtf` so I would never thought that was the only thing that would make it work!

I think this would be a good remark to bring up in a troubleshoot thread or something!

Thanks again!  :thumbsup:

Viva MasmBasic!

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 13280
  • Assembly is fun ;-)
    • MasmBasic
Re: A guide to the RichMasm editor
« Reply #70 on: April 03, 2020, 11:36:43 AM »
Great job, Tio - and thanks again for the feedback :thup:

I will have to investigate why the file converter is needed. All it does for RichMasm is actually provide a more advanced RichEd20.dll :cool:

Another candidate for the RichEd20.DLL bugs thread :tongue:
Masm32 Tips, Tricks and Traps

Some members can't live without insulting others. It tells us a lot about them.

TioPepperoni

  • Regular Member
  • *
  • Posts: 3
Re: A guide to the RichMasm editor
« Reply #71 on: April 03, 2020, 11:48:23 AM »
Great job, Tio - and thanks again for the feedback :thup:

My pleasure! - I fell in love this project at first sight!

I will have to investigate why the file converter is needed. All it does for RichMasm is actually provide a more advanced RichEd20.dll :cool:

Another candidate for the RichEd20.DLL bugs thread :tongue:

 :greensml: