flat assembler
Message board for the users of flat assembler.

flat assembler > IDE Development > Notepad++ fasm syntax highlight

Author
Thread Post new topic Reply to topic
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 4
I created fasm syntax highlighting style for the current version of Notepad ++ (NPP_v7.7.1, UDL2.1).
The style is defined only for the lower case, but this is a matter of taste, and is solved by setting one checkmark in the syntax settings.
Defined folds for macros and conditional assembly directives. The list of x86-64 instructions was manually pulled from the latest version of Intel Software Developer Manuals.
Among the shortcomings: I could not get notepad ++ to highlight hexadecimal numbers with the suffix 'h' with hexadecimal digits in lower case so that it would not break the highlighting of binary numbers with the suffix 'b' and floating-point numbers with the suffix 'f'. Therefore, hexadecimal numbers with the suffix 'h' are correctly highlighted only if they use hexadecimal digits in upper case. Hexadecimal numbers with prefixes are determined correctly, regardless of the case of digits.


Description:
Download
Filename: fasm_syntax_style_for_UDL2.1.7z
Filesize: 4.31 KB
Downloaded: 34 Time(s)

Post 14 Aug 2019, 13:58
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16737
Location: In your JS exploiting you and your system
iVeryBadGuy wrote:
IThe list of x86-64 instructions was manually pulled from the latest version of Intel Software Developer Manuals.
You could also use fasm's TABLES.INC file to get the opcodes, directives and operators.
Post 14 Aug 2019, 18:40
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7322
Location: Kraków, Poland
revolution wrote:
You could also use fasm's TABLES.INC file to get the opcodes, directives and operators.
I would recommend that, for several reasons:
  • Some instruction sets like AMD 3DNow! never were in any Intel manuals.
  • Some instructions, like FNENI/FNDISI, were doing something only on old generations of chips and are no longer listed in current manuals (but fasm still knows them).
  • SALC remains undocumented, even though all CPUs seem to support it (also fasm allows alternate name SETALC - as an undocumented instruction it was sometimes known under different names).
Post 14 Aug 2019, 19:40
View user's profile Send private message Visit poster's website Reply with quote
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 4
Thank you for your advice!
I will try to follow it as soon as free time appears.
Post 14 Aug 2019, 20:16
View user's profile Send private message Reply with quote
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 4
The style has lead in accordance with the file "TABLES.INC" from the fasm_v1.73.16 source code.
Changed highlight colors.
Added auto-highlighting of files with the extensions ".asm" and ".inc".


Description:
Download
Filename: fasm_syntax_style_for_UDL2.1_v2.0.7z
Filesize: 5.74 KB
Downloaded: 37 Time(s)

Post 18 Aug 2019, 23:53
View user's profile Send private message Reply with quote
Mikl___



Joined: 30 Dec 2014
Posts: 113
Hi, iVeryBadGuy!
Is your second nick Shere Khan?
Image
Post 19 Aug 2019, 14:01
View user's profile Send private message Visit poster's website Reply with quote
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 4
Mikl___ wrote:
Is your second nick Shere Khan?

Hi, Mikl___!
Not in this forum.
My nick is Shere Khan on wasm.in.
Post 19 Aug 2019, 15:57
View user's profile Send private message 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.