hlissner / emacs-mips-mode Goto Github PK
View Code? Open in Web Editor NEWAn Emacs major mode for MIPS assembly code
License: MIT License
An Emacs major mode for MIPS assembly code
License: MIT License
Is it anyhow possible to give input to the program in the spim mips emulator in
mips-run-buffer (C-c C-p)
?
I attempted to indent some copy & pasted MIPS code (e.g this). I expected lines to be indented according to the current mips-mode
column settings.
I think a variable is never incremented and a space keeps getting added to the head of the line and I have to Ctrl+G out.
mips-pad-rxg
internals from before the refactor in f35e039 seem to work.
I took that and modified it to contain an untabify call and also removed the progn from the else clause, but otherwise, it's the same thing.
(defun mips--pad-rxg (column group)
"Match a MIPS assembly statement using `mips-line-re'.
Will trim, pad, or backward-delete string segment in matching group GROUP until
COLUMN."
(string-match mips-line-re (mips-line))
(untabify (line-beginning-position) (line-end-position))
(when (wholenump (match-beginning group))
(move-to-column (match-beginning group))
(when (< (current-column) (match-end group))
(while (/= (current-column) column)
(if (< (current-column) column)
(insert mips-indent-character)
(if (member (preceding-char) mips-wp-char)
(delete-backward-char 1)
(message "Bumped into a wall at column %s!" (current-column))
(insert mips-indent-character) ;; pad one whitespace
(move-to-column column t) ;; and bail out forward.
(while (member (char-after) mips-wp-char)
(delete-forward-char 1))))))))
mips-mode
buffer.No response
Using C-c C-c gives the message "No such file or directory, spim."
Would you be able to tell me where spacemacs is looking for the spim files? The mips files are created in the tmp folder but the code is not actually interpreted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.