flat assembler
Message board for the users of flat assembler.

Index > Windows > How to get instructions highlighting in FASMW

Author
Thread Post new topic Reply to topic
randall



Joined: 03 Dec 2011
Posts: 155
Location: Poland
randall
Everything that is prefixed with $ in FASMW will be highlighted as a number (green by default).

So I am doing this in a highlight_inst.inc file:

Code:
$mov fix mov
$add fix add
; ... for all instructions used
; ....
    


And then write my code like this:

Code:
include 'highlight_inst.inc'

$mov eax,1
$vmulps ymm0,ymm1,ymm2
$vbroadcastss ymm3,[value]
$imul r12d,r13d
    


To get instructions highlighting.
Just a little trick I use. The code is far more readable for me.
Additionaly, thanks to $ prefix instruction column is perfectly aligned (because all instructions begins with the same char).
Post 19 Jun 2015, 08:38
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-2020, Tomasz Grysztar.

Powered by rwasa.