请输入您要查询的百科知识:

 

词条 Libfat
释义

  1. DLDI

  2. Using libfat

  3. References

  4. See also

{{Notability|date=April 2010}}libfat (with a lower case l) is a FAT library made by Michael "Chishm" Chisholm for the Nintendo DS[1] to code Nintendo DS Homebrew applications. It is the successor of the dual GBA NDS FAT library, which was also used, like libfat, to code Nintendo DS Homebrew applications. It is packaged as part of DevKitARM, a software development kit, or Devkit for ARM microprocessor microprocessors namely the ARM7TDMI(-S)[2] and ARM946E-S[3] cores used in the Nintendo DS.[4]

DLDI

DLDI (or Dynamically-Linked Device Interface)[5] is a technology created by Michael "Chishm" Chisholm as an interface for libfat that developers attach to their projects. libfat is programmed in a single language, but different flashcarts, such as the R4DS, use different read/write commands. The DLDI Patch fixes this, as explained below.

Without DLDI, libfat receives encrypted commands from the flashcart, and cannot act accordingly, so it sends an error to the homebrew explaining that it cannot understand the commands, which then presents this information to the flashcart, and the user, in the form of a black screen.

With the correct DLDI patch [6][7] applied to the homebrew,[8] the DLDI patch acts as an interface between the flashcart/user and the homebrew. It unencrypts the flashcart's specific read/write commands and converts them into a libfat-specific programming language, which libfat can understand and present the homebrew with information which can then be passed onto the flashcart/user.

Using libfat

libfat, like any FAT library, uses a main source file. The library's operations are conducted by a single fat.h file in the source file with the code:

libfat can be uniquely programmed to use the slots on the Nintendo DS [9] Slot 1 being the main DS cartridge slot, Slot 2 being the GBA slot on the Nintendo DS and DS Lite, and SD Card slot on the DSi and DSiXL. libfat can use or boot from two slots at the same time, as in taking information from a SLOT 2 device while running the main program from SLOT 1. This can be programmed by using the following codes:

 fat: -- the default device fat0: -- same as fat: fat1: -- the device in Slot-1 of the NDS fat2: -- the device in Slot-2 of the NDS fat3: -- a custom mounted device

References

1. ^{{cite web|url=http://chishm.drunkencoders.com/libfat/index.html|title=libfat site|first=Michael|last=Chisholm}}
2. ^http://www.arm.com/products/processors/classic/arm7/arm7tdmi.php
3. ^http://www.arm.com/products/processors/classic/arm9/arm946.php
4. ^http://www.nintendo.com/ds
5. ^http://chishm.drunkencoders.com/DLDI/
6. ^http://dldi.drunkencoders.com/index.php?title=R4TF
7. ^http://dldi.drunkencoders.com/index.php?title=Main_Page
8. ^http://hive.ndshb.com/
9. ^{{cite web|url=http://nintendo-scene.com/index.php?s=libfat |title=libfat on ndscene |deadurl=yes |archiveurl=https://web.archive.org/web/20110727152222/http://nintendo-scene.com/index.php?s=libfat |archivedate=2011-07-27 |df= }}

See also

  • Nintendo DS homebrew

1 : Nintendo DS homebrew

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/28 7:19:53