Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/themkat/pica-mode

PICA200 shader assembly language (used in Nintendo 3DS) mode for Emacs.
https://github.com/themkat/pica-mode

3ds-homebrew nintendo-3ds-homebrew pica200

Last synced: 12 days ago
JSON representation

PICA200 shader assembly language (used in Nintendo 3DS) mode for Emacs.

Awesome Lists containing this project

README

        

* pica-mode - PICA200 Assembly language mode for Emacs

Syntax highlighting and indentation for Pica200 Assembly language.

[[./screenshot.png]]
(loop subdivision geometry shader example from [[https://github.com/devkitPro/3ds-examples/blob/979ab794de89f1ce30a2e307a8dc17fc4fe1d684/graphics/gpu/loop_subdivision/source/program.g.pica][DevkitPro 3ds-examples]])

** Installation
*** use-package with straight.el
Package is sadly not on MELPA yet, but you can use use-package with straight.el:

#+BEGIN_SRC emacs-lisp
(use-package pica-mode
:straight (pica-mode :type git :host github :repo "themkat/pica-mode"))
#+END_SRC

If you use the same file endings as the DevkitPro 3ds examples, .pica, and want to use pica-mode on those, you can use:

#+BEGIN_SRC emacs-lisp
(use-package pica-mode
:straight (pica-mode :type git :host github :repo "themkat/pica-mode")
:mode "\\.pica\\'")
#+END_SRC

*** Manually
Clone this repo to anywhere on your machine. Then, in your Emacs configuration, you simply run:

#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "path/to/repo")
(require 'pica-mode)
#+END_SRC
(where "path/to/repo" is replaced with the actual path to the repo you cloned)

Similarly, if you want to open .pica files in pica-mode:
#+BEGIN_SRC emacs-lisp
(add-to-list 'auto-mode-alist '("\\.pica\\'" . pica-mode))
#+END_SRC

** Usage
Simply install the package and activate =pica-mode= in your buffer.