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

LordAdef

  • Member
  • ****
  • Posts: 642
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: 10020
  • Assembler 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.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 10020
  • Assembler 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 »

HSE

  • Member
  • *****
  • Posts: 1217
  • <AMD>< 7-32>
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

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 10020
  • Assembler 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.

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 10020
  • Assembler 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)

jj2007

  • Moderator
  • Member
  • *****
  • Posts: 10020
  • Assembler 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.