Skip to content

An Emacs major mode for MIPS assembly code

License

Notifications You must be signed in to change notification settings

hlissner/emacs-mips-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 

Repository files navigation

MIT MELPA MELPA Stable

mips-mode

An Emacs major mode for MIPS Assembly code, based off haxor-mode. Originally written for the MIPS Assembly track on exercism.io. MIPS Reference.

Features

  • Code evaluation with spim
  • Syntactic highlighting
  • Syntactic indentation

Installation

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:

  1. Add (package! mips-mode) to $DOOMDIR/packages.el.
  2. Run $ doom sync.
  3. Restart Emacs.

Usage

Use (require 'mips-mode); it will set up itself.

Keybindings

C-c C-c evaluates the current buffer in mips-interpreter

C-c C-r evaluates the current region in mips-interpreter