Code Monkey home page Code Monkey logo

emacs-mips-mode's Introduction

Metrics

emacs-mips-mode's People

Contributors

adamniederer avatar hlissner avatar purcell avatar soos-peter-levente avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs-mips-mode's Issues

I/O in mips-mode

Is it anyhow possible to give input to the program in the spim mips emulator in
mips-run-buffer (C-c C-p) ?

Getting error on tmp file

Getting an error on tmp file like so (after trying to eval the buffer):
Screen Shot 2019-03-20 at 5 20 33 PM

then looks like because of that error, it gets caught in the help buffer as you can see in the mode line.

GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-30

indent infinite loop in 1.2.0

What did you expect to happen?

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.

What actually happened?

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.

Describe your attempts to resolve the issue

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))))))))

Steps to reproduce

  1. Copy & paste some MIPS code in a mips-mode buffer.
  2. Select a region
  3. Press Tab to indent

Package commit

98795cd

System Information

No response

Could not find SPIM

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.