From WikiTemp, the GBAtemp wiki
m
 
(3 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
| image      =  
 
| image      =  
 
| type        =  
 
| type        =  
| author      = [[User:neobrain|neobrain]]
+
| author      = neobrain
 
| contributor =  
 
| contributor =  
 
| version    =  
 
| version    =  
Line 10: Line 10:
 
| website    =  
 
| website    =  
 
| source      = https://github.com/neobrain/nihstro
 
| source      = https://github.com/neobrain/nihstro
| discussion  =  
+
| discussion  = https://gbatemp.net/threads/3ds-shader-assembler-and-disassembler-nihstro.383183/
 
}}
 
}}
 
'''Nihstro''' is a set of tools to assemble and disassemble [[wikipedia:shader|shader]] code for the PICA200 GPU used in the Nintendo 3DS. It was inspired by [[aemstro]], but is more user friendly and feature-rich.
 
'''Nihstro''' is a set of tools to assemble and disassemble [[wikipedia:shader|shader]] code for the PICA200 GPU used in the Nintendo 3DS. It was inspired by [[aemstro]], but is more user friendly and feature-rich.
Line 19: Line 19:
 
If you need/want to build nihstro yourself, you first need to install [http://www.cmake.org/ CMake] and the [http://www.boost.org/ C++ Boost libraries]. CMake has an installer for Windows, and is most likely available via your package manager on Linux.
 
If you need/want to build nihstro yourself, you first need to install [http://www.cmake.org/ CMake] and the [http://www.boost.org/ C++ Boost libraries]. CMake has an installer for Windows, and is most likely available via your package manager on Linux.
  
To install the Boost libraries, download the latest package from the boost main site and extract it anywhere. Open a command prompt (windows) or terminal (linux) and navigate (<code>cd</code>) to the extracted folder. Now run <code>boostrap.bat</code> (windows) or <code>./bootstrap.sh</code> (linux). It will generate a b2 executable. Install boost via <code>b2 install</code> (windows) or <code>./b2 install</code> (linux).
+
To install the Boost libraries, download the latest package from the boost main site and extract it anywhere. Open a command prompt (windows) or terminal (linux) and navigate (<code>cd</code>) to the extracted folder. Now run <code>boostrap.bat</code> (windows) or <code>./bootstrap.sh</code> (linux). It will generate a b2 executable. Install boost via <code>b2 install --prefix=c:\boost</code> (windows) or <code>./b2 install --prefix=/usr/local</code> (linux).
  
 
After all that is done, download and extract the nihstro package and <code>cd</code> to it in your command prompt/terminal. Now use the commands <code>cmake .</code> and <code>make</code> to compile nihstro. Finally, add an environment variable called "NIHSTRO" and point it to your nihstro folder (the one containing the assembler and disassembler).
 
After all that is done, download and extract the nihstro package and <code>cd</code> to it in your command prompt/terminal. Now use the commands <code>cmake .</code> and <code>make</code> to compile nihstro. Finally, add an environment variable called "NIHSTRO" and point it to your nihstro folder (the one containing the assembler and disassembler).

Latest revision as of 12:33, 22 October 2016

nihstro
General
Authorneobrain
Links
Via GitHub
Source
Discussion

Nihstro is a set of tools to assemble and disassemble shader code for the PICA200 GPU used in the Nintendo 3DS. It was inspired by aemstro, but is more user friendly and feature-rich.

Installation

The easiest way to install nihstro is to find a precompiled version of the nihstro-assembler and nihstro-disassembler. You can put them in any location and add an environment variable "NIHSTRO" which points to that location.

If you need/want to build nihstro yourself, you first need to install CMake and the C++ Boost libraries. CMake has an installer for Windows, and is most likely available via your package manager on Linux.

To install the Boost libraries, download the latest package from the boost main site and extract it anywhere. Open a command prompt (windows) or terminal (linux) and navigate (cd) to the extracted folder. Now run boostrap.bat (windows) or ./bootstrap.sh (linux). It will generate a b2 executable. Install boost via b2 install --prefix=c:\boost (windows) or ./b2 install --prefix=/usr/local (linux).

After all that is done, download and extract the nihstro package and cd to it in your command prompt/terminal. Now use the commands cmake . and make to compile nihstro. Finally, add an environment variable called "NIHSTRO" and point it to your nihstro folder (the one containing the assembler and disassembler).