Library to develop applications for the Teak DSP of the DSi and 3DS. https://blocksds.skylyrac.net/libteak/index.html
  • CSS 41.5%
  • C 37.2%
  • Assembly 8.8%
  • JavaScript 7.7%
  • Python 2%
  • Other 2.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-01-10 15:07:24 +00:00
asm chore: library: Preprocess all assembly files 2023-11-27 02:21:30 +00:00
doxygen doxygen: Add theme for Doxygen documentation 2024-02-13 19:05:27 +00:00
include/teak chore: Uniformize Doxygen comments 2024-08-01 02:04:02 +01:00
licenses Initial import of libteak 2023-11-27 01:36:21 +00:00
source chore: Set a code styte based on clang-format 2024-06-24 01:29:04 +01:00
tools crt0: linker: Add linkerscript and crt0 2023-11-27 02:16:23 +00:00
.clang-format chore: Set a code styte based on clang-format 2024-06-24 01:29:04 +01:00
.gitignore Initial import of libteak 2023-11-27 01:36:21 +00:00
Doxyfile docs: Update Doxyfile 2024-08-01 18:04:12 +01:00
Makefile crt0: linker: Add linkerscript and crt0 2023-11-27 02:16:23 +00:00
Makefile.teak Initial import of libteak 2023-11-27 01:36:21 +00:00
readme.md docs: Fix link to issue tracker 2026-01-10 15:07:24 +00:00
teak.ld crt0: linker: Add linkerscript and crt0 2023-11-27 02:16:23 +00:00

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.

Please, report issues here.

2. Setup

The Teak toolchain is currently only distributed by Wonderful Toolchain. You will need to install the Teak toolchain of Wonderful Toolchain. 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 Toolchain:

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.