flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Notepad++ fasm syntax highlight

Author
Thread Post new topic Reply to topic
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 5
iVeryBadGuy 14 Aug 2019, 13:58
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: 1058 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: 20448
Location: In your JS exploiting you and your system
revolution 14 Aug 2019, 18:40
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



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 14 Aug 2019, 19:40
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: 5
iVeryBadGuy 14 Aug 2019, 20:16
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: 5
iVeryBadGuy 18 Aug 2019, 23:53
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: 957 Time(s)

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



Joined: 30 Dec 2014
Posts: 140
Location: Russian Federation, Irkutsk
Mikl___ 19 Aug 2019, 14:01
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: 5
iVeryBadGuy 19 Aug 2019, 15:57
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
iVeryBadGuy



Joined: 14 Aug 2019
Posts: 5
iVeryBadGuy 03 Dec 2019, 17:53
The new version of the highlight style, from 2019-12-03.

Changes:
The style has lead in accordance with the file "TABLES.INC" from the fasm_v1.73.20 source code.


Description:
Download
Filename: fasm_syntax_style_for_UDL2.1_v2019-12-03_23-29.7z
Filesize: 5.85 KB
Downloaded: 1073 Time(s)

Post 03 Dec 2019, 17:53
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4073
Location: vpcmpistri
bitRAKE 11 Dec 2019, 13:05
Thank you.

You'll most likely want to:

Settings -> Style Configurator... "Enable global background color".
Post 11 Dec 2019, 13:05
View user's profile Send private message Visit poster's website 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.