blocksds / libteak

Library to develop applications for the Teak DSP of the DSi and 3DS.

Home Page:https://blocksds.github.io/docs/libteak/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libteak

1. Introduction

This is a library to help develop applications for the DSP that comes with the DSi and 3DS consoles. It is provided as part of BlocksDS, but it can also be used as a standalone library.

2. Setup

The Teak toolchain is currently only distributed by Wonderful Toolchain. You will need to install the Teak toolchain of Wonderful Toolchains. Follow the instructions in this link: https://wonderful.asie.pl/docs/getting-started/

Note that the Teak toolchain is currently only available on Linux, not Windows.

Now, install the Teak toolchain of Wonderful Toolchains:

wf-pacman -Syu
wf-pacman -S toolchain-llvm-teak-llvm

Finally, build the library:

make

3. Editing assembly files

The assembler of the Teak toolchain doesn't support expanding C-style defines and macros. Using magic numbers in the code is bad practice, so this repository has a simple python script (in the folder tools) that is used to preprocess assembly files and expand simple expressions.

All files stored in the asm folder are preprocessed and saved to the source folder. Both files are present in the repository because that way python 3 isn't a dependency required to build the library. However, it is required if you want to modify the assembly files of the library.

About

Library to develop applications for the Teak DSP of the DSi and 3DS.

https://blocksds.github.io/docs/libteak/index.html


Languages

Language:CSS 41.6%Language:C 37.0%Language:Assembly 8.9%Language:JavaScript 7.7%Language:Python 2.0%Language:HTML 1.9%Language:Makefile 0.5%Language:Shell 0.4%