Quick post for those Emacs users out there.
The common assembler used on GNU/Linux nowadays is the GAS assembler, part of the GNU Compiler Collection (GCC). If, like me, you get upset with the AT&T syntax and prefer working with a real assembler (and not a just a compiler back-end), you might want to give NASM try.
If you, however, are also a Emacs user, there’s a problem: Emacs assembly mode only supports the GAS syntax, there’s no nasm-mode. Quite disturbing...
So here’s a link to my NASM mode: nasm-mode.el
Please give it a try and don't hesitate to report any bug or missing feature!
All you have to do is put nasm-mode.el in the your load path (usually in ~/.emacs.d/) and add the following lines in your .emacs file:
(autoload 'nasm-mode "~/.emacs.d/nasm-mode.el" "" t) (add-to-list 'auto-mode-alist '("\\.\\(asm\\|s\\)$" . nasm-mode))
See yah
Hello Matthieu, your nasm-Mode looks very nice. Are you still maintaining it? I think it would be nice if it could be included into the Emacs-Elpa repositories.
ReplyDeleteThank you, Ludwig
Looks really great. This makes my assembly programming much more fun :)
ReplyDeleteThanks!
- sword_smith