Posts Tagged ‘MIPS’

Perfect number check and ROT-13 encryption in MIPS-assembly code

MIPS Ingenic JZ4730 SoC in the Skytone Alpha 400

Perfect number check The perfect number check in MIPS is quite easy to realize. Here is some pythonic Pseudocode And here is the MIPS-Code: ROT-13 encryption The basic idea for encrypting a string with ROT-13 is to loop over all characters and use the ASCII-Table to shift them. Here is the ROT-13 MIPS-Code: A syntax-highlighted [...]

How to print MIPS assembly code in LaTeX

LaTeX Logo

If you like to print highlighted MIPS assembly code in LaTeX, you can use the listings package. Sadly, no MIPS language file exits by default in LaTeX, but awg has created one and provides it on his blog. Just download mips.sty (thanks to Adam Gordon!) and place it in your project folder. Then you can [...]

Add MIPS syntax highlighting to gEdit

MIPS Ingenic JZ4730 SoC in the Skytone Alpha 400

I have to code some little programs in MIPS assembly language for university. So I liked to have some syntax highlighting for my favorite editor: gEdit. The following steps were tested on Ubuntu 10.04.4 LTS. This adds MIPS syntax highlighting to gEdit and every editor, that uses gtksourceview. Create the following file: /usr/share/gtksourceview-2.0/language-specs/sal.lang Source: GITHub: [...]