An Emacs major mode for MIPS Assembly code, based off haxor-mode. Originally written for the MIPS Assembly track on exercism.io. MIPS Reference.
- Code evaluation with
spim
- Syntactic highlighting
- Syntactic indentation
mips-mode is available on MELPA. To install:
M-x package-install RET mips-mode
Alternatively, for use-package users:
(use-package mips-mode :mode "\\.mips$")
As for Doom Emacs users:
- Add
(package! mips-mode)
to$DOOMDIR/packages.el
. - Run
$ doom sync
. - Restart Emacs.
Use (require 'mips-mode)
; it will set up itself.
C-c C-c
evaluates the current buffer in mips-interpreter
C-c C-r
evaluates the current region in mips-interpreter