From a3b96157ad4c828632788623a16665e5ccfcfa5b Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 11 Nov 2024 00:39:56 -0700 Subject: [PATCH] Add unused test DLDI drivers --- arm9/dldi-include-unused/dstwo_dldi.c | 155 ++++++++++++++++++++++++++ arm9/dldi-include-unused/ttio_dldi.c | 136 ++++++++++++++++++++++ arm9/dldi-include/dldi-include.h | 2 + arm9/source/driveOperations.cpp | 12 +- 4 files changed, 297 insertions(+), 8 deletions(-) create mode 100644 arm9/dldi-include-unused/dstwo_dldi.c create mode 100644 arm9/dldi-include-unused/ttio_dldi.c diff --git a/arm9/dldi-include-unused/dstwo_dldi.c b/arm9/dldi-include-unused/dstwo_dldi.c new file mode 100644 index 0000000..524e660 --- /dev/null +++ b/arm9/dldi-include-unused/dstwo_dldi.c @@ -0,0 +1,155 @@ +#include + +TWL_CODE unsigned char dstwo_dldi[] = { + 0xed, 0xa5, 0x8d, 0xbf, 0x20, 0x43, 0x68, 0x69, 0x73, 0x68, 0x6d, 0x00, + 0x01, 0x0b, 0x0e, 0x00, 0x44, 0x53, 0x54, 0x57, 0x4f, 0x28, 0x53, 0x6c, + 0x6f, 0x74, 0x2d, 0x31, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xbf, 0x10, 0x07, 0x80, 0xbf, + 0x98, 0x00, 0x80, 0xbf, 0x98, 0x00, 0x80, 0xbf, 0x0c, 0x07, 0x80, 0xbf, + 0x0c, 0x07, 0x80, 0xbf, 0x10, 0x07, 0x80, 0xbf, 0x2c, 0x07, 0x80, 0xbf, + 0x44, 0x53, 0x49, 0x32, 0x23, 0x00, 0x00, 0x00, 0x08, 0x02, 0x80, 0xbf, + 0x3c, 0x01, 0x80, 0xbf, 0xa0, 0x01, 0x80, 0xbf, 0x54, 0x01, 0x80, 0xbf, + 0x44, 0x01, 0x80, 0xbf, 0x4c, 0x01, 0x80, 0xbf, 0x0d, 0xc0, 0xa0, 0xe1, + 0xf8, 0xdf, 0x2d, 0xe9, 0x04, 0xb0, 0x4c, 0xe2, 0x28, 0xd0, 0x4b, 0xe2, + 0xf0, 0x6f, 0x9d, 0xe8, 0x1e, 0xff, 0x2f, 0xe1, 0x10, 0x40, 0x2d, 0xe9, + 0x2c, 0x40, 0x9f, 0xe5, 0x00, 0x30, 0xd4, 0xe5, 0x00, 0x00, 0x53, 0xe3, + 0x24, 0x20, 0x9f, 0xe5, 0x05, 0x00, 0x00, 0x1a, 0x00, 0x00, 0x52, 0xe3, + 0x1c, 0x00, 0x9f, 0xe5, 0x0f, 0xe0, 0xa0, 0x11, 0x12, 0xff, 0x2f, 0x11, + 0x01, 0x30, 0xa0, 0xe3, 0x00, 0x30, 0xc4, 0xe5, 0x10, 0x40, 0xbd, 0xe8, + 0x1e, 0xff, 0x2f, 0xe1, 0x10, 0x07, 0x80, 0xbf, 0x00, 0x00, 0x00, 0x00, + 0x04, 0x07, 0x80, 0xbf, 0x04, 0xe0, 0x2d, 0xe5, 0x40, 0x30, 0x9f, 0xe5, + 0x00, 0x00, 0x53, 0xe3, 0x04, 0xd0, 0x4d, 0xe2, 0x38, 0x00, 0x9f, 0xe5, + 0x38, 0x10, 0x9f, 0xe5, 0x0f, 0xe0, 0xa0, 0x11, 0x13, 0xff, 0x2f, 0x11, + 0x30, 0x00, 0x9f, 0xe5, 0x00, 0x30, 0x90, 0xe5, 0x00, 0x00, 0x53, 0xe3, + 0x28, 0x30, 0x9f, 0xe5, 0x02, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x53, 0xe3, + 0x0f, 0xe0, 0xa0, 0x11, 0x13, 0xff, 0x2f, 0x11, 0x04, 0xd0, 0x8d, 0xe2, + 0x04, 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, 0x4d, 0xe2, 0x01, 0x40, 0xa0, 0xe1, + 0x02, 0x50, 0xa0, 0xe1, 0xf0, 0xff, 0xff, 0xeb, 0x24, 0x3c, 0xa0, 0xe1, + 0x4c, 0x20, 0x9f, 0xe5, 0xa9, 0x30, 0xc2, 0xe5, 0x24, 0x38, 0xa0, 0xe1, + 0xff, 0x30, 0x03, 0xe2, 0xaa, 0x30, 0xc2, 0xe5, 0x24, 0x34, 0xa0, 0xe1, + 0xff, 0x30, 0x03, 0xe2, 0xab, 0x30, 0xc2, 0xe5, 0xff, 0x40, 0x04, 0xe2, + 0xac, 0x40, 0xc2, 0xe5, 0x25, 0x38, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, + 0xad, 0x30, 0xc2, 0xe5, 0x25, 0x34, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, + 0xae, 0x30, 0xc2, 0xe5, 0xff, 0x50, 0x05, 0xe2, 0xaf, 0x50, 0xc2, 0xe5, + 0x04, 0xd0, 0x8d, 0xe2, 0x30, 0x40, 0xbd, 0xe8, 0x1e, 0xff, 0x2f, 0xe1, + 0x00, 0x01, 0x00, 0x04, 0xa7, 0x04, 0x80, 0xe3, 0x06, 0x07, 0x80, 0xe3, + 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x01, 0x83, 0xe5, 0x03, 0x20, 0xa0, 0xe1, + 0xa4, 0x31, 0x92, 0xe5, 0x02, 0x05, 0x13, 0xe3, 0xfc, 0xff, 0xff, 0x0a, + 0x41, 0x36, 0xa0, 0xe3, 0x10, 0x00, 0x93, 0xe5, 0x1e, 0xff, 0x2f, 0xe1, + 0xb0, 0x20, 0x9f, 0xe5, 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x21, 0x83, 0xe5, + 0x03, 0x00, 0x10, 0xe3, 0x0f, 0x00, 0x00, 0x1a, 0x03, 0x00, 0x11, 0xe3, + 0x0d, 0x00, 0x00, 0x1a, 0x03, 0x20, 0xa0, 0xe1, 0x41, 0xc6, 0xa0, 0xe3, + 0xa4, 0x31, 0x92, 0xe5, 0x02, 0x05, 0x13, 0xe3, 0x04, 0x00, 0x00, 0x0a, + 0x00, 0x00, 0x51, 0xe3, 0x10, 0x30, 0x9c, 0xc5, 0x04, 0x30, 0x80, 0xc4, + 0x04, 0x10, 0x41, 0xc2, 0x10, 0x30, 0x9c, 0xd5, 0xa4, 0x31, 0x92, 0xe5, + 0x00, 0x00, 0x53, 0xe3, 0x1e, 0xff, 0x2f, 0xa1, 0xf3, 0xff, 0xff, 0xea, + 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x31, 0x93, 0xe5, 0x02, 0x05, 0x13, 0xe3, + 0x0f, 0x00, 0x00, 0x0a, 0x41, 0x36, 0xa0, 0xe3, 0x10, 0x20, 0x93, 0xe5, + 0x00, 0x00, 0x51, 0xe3, 0x0b, 0x00, 0x00, 0xda, 0x00, 0xc0, 0xa0, 0xe3, + 0x01, 0x20, 0xc0, 0xe4, 0x22, 0x24, 0xa0, 0xe1, 0x01, 0x10, 0x41, 0xe2, + 0x01, 0xc0, 0x8c, 0xe2, 0x03, 0x00, 0x5c, 0xe3, 0x00, 0x30, 0xa0, 0xc3, + 0x01, 0x30, 0xa0, 0xd3, 0x00, 0x00, 0x51, 0xe3, 0x00, 0x30, 0xa0, 0xd3, + 0x00, 0x00, 0x53, 0xe3, 0xf4, 0xff, 0xff, 0x1a, 0x01, 0x33, 0xa0, 0xe3, + 0xa4, 0x31, 0x93, 0xe5, 0x00, 0x00, 0x53, 0xe3, 0xe7, 0xff, 0xff, 0xba, + 0x1e, 0xff, 0x2f, 0xe1, 0x18, 0x00, 0x18, 0xa1, 0x00, 0xc0, 0xa0, 0xe1, + 0x84, 0x20, 0x9f, 0xe5, 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x21, 0x83, 0xe5, + 0x03, 0x00, 0x10, 0xe3, 0x09, 0x00, 0x00, 0x1a, 0x03, 0x20, 0xa0, 0xe1, + 0x41, 0x16, 0xa0, 0xe3, 0xa4, 0x31, 0x92, 0xe5, 0x02, 0x05, 0x13, 0xe3, + 0x04, 0x30, 0x9c, 0x14, 0x10, 0x30, 0x81, 0x15, 0xa4, 0x31, 0x92, 0xe5, + 0x00, 0x00, 0x53, 0xe3, 0x1e, 0xff, 0x2f, 0xa1, 0xf7, 0xff, 0xff, 0xea, + 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x31, 0x93, 0xe5, 0x02, 0x05, 0x13, 0xe3, + 0x0a, 0x00, 0x00, 0x0a, 0x00, 0x20, 0xdc, 0xe5, 0x01, 0x10, 0xdc, 0xe5, + 0x02, 0x00, 0xdc, 0xe5, 0x03, 0x30, 0xdc, 0xe5, 0x01, 0x24, 0x82, 0xe1, + 0x03, 0x3c, 0xa0, 0xe1, 0x00, 0x38, 0x83, 0xe1, 0x03, 0x20, 0x82, 0xe1, + 0x41, 0x36, 0xa0, 0xe3, 0x10, 0x20, 0x83, 0xe5, 0x04, 0xc0, 0x8c, 0xe2, + 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x31, 0x93, 0xe5, 0x00, 0x00, 0x53, 0xe3, + 0xec, 0xff, 0xff, 0xba, 0x1e, 0xff, 0x2f, 0xe1, 0x30, 0x00, 0x18, 0xe1, + 0x04, 0xe0, 0x2d, 0xe5, 0x04, 0xd0, 0x4d, 0xe2, 0xe0, 0x00, 0xa0, 0xe3, + 0x76, 0xff, 0xff, 0xeb, 0x00, 0x00, 0xa0, 0xe3, 0x9a, 0xff, 0xff, 0xeb, + 0x01, 0x0c, 0x10, 0xe3, 0xfb, 0xff, 0xff, 0x1a, 0x04, 0xd0, 0x8d, 0xe2, + 0x04, 0xe0, 0x9d, 0xe4, 0x1e, 0xff, 0x2f, 0xe1, 0x04, 0xe0, 0x2d, 0xe5, + 0x04, 0xd0, 0x4d, 0xe2, 0x76, 0xff, 0xff, 0xeb, 0x18, 0x00, 0xa0, 0xe3, + 0x90, 0xff, 0xff, 0xeb, 0x04, 0xd0, 0x8d, 0xe2, 0x04, 0xe0, 0x9d, 0xe4, + 0x1e, 0xff, 0x2f, 0xe1, 0x10, 0x40, 0x2d, 0xe9, 0x00, 0x30, 0xa0, 0xe1, + 0x01, 0x40, 0xa0, 0xe1, 0x30, 0x00, 0xa0, 0xe3, 0x03, 0x10, 0xa0, 0xe1, + 0x01, 0x20, 0xa0, 0xe3, 0xf0, 0xff, 0xff, 0xeb, 0xe4, 0xff, 0xff, 0xeb, + 0x30, 0x00, 0xa0, 0xe3, 0x5d, 0xff, 0xff, 0xeb, 0x04, 0x00, 0xa0, 0xe1, + 0x02, 0x1c, 0xa0, 0xe3, 0x8b, 0xff, 0xff, 0xeb, 0x10, 0x40, 0xbd, 0xe8, + 0x1e, 0xff, 0x2f, 0xe1, 0x70, 0x40, 0x2d, 0xe9, 0x00, 0x30, 0xa0, 0xe1, + 0x01, 0x60, 0xa0, 0xe1, 0x02, 0x40, 0xa0, 0xe1, 0x31, 0x00, 0xa0, 0xe3, + 0x03, 0x10, 0xa0, 0xe1, 0x06, 0x20, 0xa0, 0xe1, 0xe0, 0xff, 0xff, 0xeb, + 0x00, 0x00, 0x56, 0xe3, 0x0a, 0x00, 0x00, 0xda, 0x00, 0x50, 0xa0, 0xe3, + 0xd1, 0xff, 0xff, 0xeb, 0x31, 0x00, 0xa0, 0xe3, 0x4a, 0xff, 0xff, 0xeb, + 0x04, 0x00, 0xa0, 0xe1, 0x02, 0x1c, 0xa0, 0xe3, 0x78, 0xff, 0xff, 0xeb, + 0x02, 0x4c, 0x84, 0xe2, 0x01, 0x50, 0x85, 0xe2, 0x05, 0x00, 0x56, 0xe1, + 0xf5, 0xff, 0xff, 0x1a, 0xc7, 0xff, 0xff, 0xeb, 0x70, 0x40, 0xbd, 0xe8, + 0x1e, 0xff, 0x2f, 0xe1, 0x10, 0x40, 0x2d, 0xe9, 0x00, 0x30, 0xa0, 0xe1, + 0x01, 0x40, 0xa0, 0xe1, 0x35, 0x00, 0xa0, 0xe3, 0x03, 0x10, 0xa0, 0xe1, + 0x01, 0x20, 0xa0, 0xe3, 0x43, 0xff, 0xff, 0xeb, 0x04, 0x00, 0xa0, 0xe1, + 0x97, 0xff, 0xff, 0xeb, 0xbb, 0xff, 0xff, 0xeb, 0x10, 0x40, 0xbd, 0xe8, + 0x1e, 0xff, 0x2f, 0xe1, 0x70, 0x40, 0x2d, 0xe9, 0x00, 0x30, 0xa0, 0xe1, + 0x01, 0x60, 0xa0, 0xe1, 0x02, 0x40, 0xa0, 0xe1, 0x36, 0x00, 0xa0, 0xe3, + 0x03, 0x10, 0xa0, 0xe1, 0x06, 0x20, 0xa0, 0xe1, 0x36, 0xff, 0xff, 0xeb, + 0x00, 0x00, 0x56, 0xe3, 0x09, 0x00, 0x00, 0xda, 0x00, 0x50, 0xa0, 0xe3, + 0x36, 0x00, 0xa0, 0xe3, 0x27, 0xff, 0xff, 0xeb, 0x04, 0x00, 0xa0, 0xe1, + 0x85, 0xff, 0xff, 0xeb, 0x02, 0x4c, 0x84, 0xe2, 0xa8, 0xff, 0xff, 0xeb, + 0x01, 0x50, 0x85, 0xe2, 0x05, 0x00, 0x56, 0xe1, 0xf6, 0xff, 0xff, 0x1a, + 0x70, 0x40, 0xbd, 0xe8, 0x1e, 0xff, 0x2f, 0xe1, 0x30, 0x40, 0x2d, 0xe9, + 0x04, 0xd0, 0x4d, 0xe2, 0x01, 0x40, 0xa0, 0xe1, 0x02, 0x50, 0xa0, 0xe1, + 0x19, 0xff, 0xff, 0xeb, 0x24, 0x3c, 0xa0, 0xe1, 0x7c, 0x20, 0x9f, 0xe5, + 0xa9, 0x30, 0xc2, 0xe5, 0x24, 0x38, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, + 0xaa, 0x30, 0xc2, 0xe5, 0x24, 0x34, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, + 0xab, 0x30, 0xc2, 0xe5, 0xff, 0x40, 0x04, 0xe2, 0xac, 0x40, 0xc2, 0xe5, + 0x25, 0x38, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, 0xad, 0x30, 0xc2, 0xe5, + 0x25, 0x34, 0xa0, 0xe1, 0xff, 0x30, 0x03, 0xe2, 0xae, 0x30, 0xc2, 0xe5, + 0xff, 0x50, 0x05, 0xe2, 0xaf, 0x50, 0xc2, 0xe5, 0x38, 0x20, 0x9f, 0xe5, + 0x01, 0x33, 0xa0, 0xe3, 0xa4, 0x21, 0x83, 0xe5, 0x00, 0x00, 0xa0, 0xe3, + 0x03, 0x20, 0xa0, 0xe1, 0x41, 0x16, 0xa0, 0xe3, 0xa4, 0x31, 0x92, 0xe5, + 0x02, 0x05, 0x13, 0xe3, 0x10, 0x00, 0x91, 0x15, 0xa4, 0x31, 0x92, 0xe5, + 0x00, 0x00, 0x53, 0xe3, 0xf9, 0xff, 0xff, 0xba, 0x04, 0xd0, 0x8d, 0xe2, + 0x30, 0x40, 0xbd, 0xe8, 0x1e, 0xff, 0x2f, 0xe1, 0x00, 0x01, 0x00, 0x04, + 0x00, 0x00, 0x18, 0xa7, 0x04, 0xe0, 0x2d, 0xe5, 0x04, 0xd0, 0x4d, 0xe2, + 0xe1, 0x00, 0xa0, 0xe3, 0x00, 0x10, 0xa0, 0xe3, 0x01, 0x20, 0xa0, 0xe1, + 0xd0, 0xff, 0xff, 0xeb, 0x00, 0x00, 0xa0, 0xe3, 0x04, 0xd0, 0x8d, 0xe2, + 0x04, 0xe0, 0x9d, 0xe4, 0x1e, 0xff, 0x2f, 0xe1, 0x10, 0x40, 0x2d, 0xe9, + 0x20, 0x40, 0x9f, 0xe5, 0xf2, 0xff, 0xff, 0xeb, 0x73, 0x00, 0xa0, 0xe3, + 0x18, 0x10, 0x9f, 0xe5, 0x00, 0x20, 0xa0, 0xe3, 0x74, 0xff, 0xff, 0xeb, + 0x04, 0x00, 0x50, 0xe1, 0xf8, 0xff, 0xff, 0x1a, 0x10, 0x40, 0xbd, 0xe8, + 0x1e, 0xff, 0x2f, 0xe1, 0x5a, 0x5a, 0xa5, 0xa5, 0xa5, 0xa5, 0x5a, 0x5a, + 0x0d, 0xc0, 0xa0, 0xe1, 0xf8, 0xdf, 0x2d, 0xe9, 0x04, 0xb0, 0x4c, 0xe2, + 0x28, 0xd0, 0x4b, 0xe2, 0xf0, 0x6f, 0x9d, 0xe8, 0x1e, 0xff, 0x2f, 0xe1, + 0xdc, 0x00, 0x80, 0xbf, 0x98, 0x00, 0x80, 0xbf, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; \ No newline at end of file diff --git a/arm9/dldi-include-unused/ttio_dldi.c b/arm9/dldi-include-unused/ttio_dldi.c new file mode 100644 index 0000000..c5be68c --- /dev/null +++ b/arm9/dldi-include-unused/ttio_dldi.c @@ -0,0 +1,136 @@ +#include + +TWL_CODE unsigned char ttio_dldi[] = { + 0xed, 0xa5, 0x8d, 0xbf, 0x20, 0x43, 0x68, 0x69, 0x73, 0x68, 0x6d, 0x00, + 0x01, 0x0b, 0x08, 0x00, 0x54, 0x54, 0x43, 0x41, 0x52, 0x44, 0x20, 0x49, + 0x4f, 0x20, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xa0, 0xe1, 0x00, 0x00, 0xa0, 0xe1, 0x00, 0x00, 0xa0, 0xe1, + 0x00, 0x00, 0xa0, 0xe1, 0x00, 0x00, 0xa0, 0xe1, 0x00, 0x00, 0xa0, 0xe1, + 0x00, 0x00, 0xa0, 0xe1, 0x00, 0x00, 0x80, 0xbf, 0x2c, 0x06, 0x80, 0xbf, + 0x8c, 0x00, 0x80, 0xbf, 0x8c, 0x00, 0x80, 0xbf, 0x2c, 0x06, 0x80, 0xbf, + 0x2c, 0x06, 0x80, 0xbf, 0x2c, 0x06, 0x80, 0xbf, 0x30, 0x06, 0x80, 0xbf, + 0x54, 0x54, 0x49, 0x4f, 0x23, 0x01, 0x00, 0x00, 0x9d, 0x05, 0x80, 0xbf, + 0xa9, 0x05, 0x80, 0xbf, 0xb1, 0x05, 0x80, 0xbf, 0xbf, 0x05, 0x80, 0xbf, + 0xad, 0x05, 0x80, 0xbf, 0xcd, 0x05, 0x80, 0xbf, 0x01, 0x00, 0x50, 0xe2, + 0xfd, 0xff, 0xff, 0xca, 0x1e, 0xff, 0x2f, 0xe1, 0x80, 0x23, 0x03, 0x49, + 0x1b, 0x04, 0x0a, 0x68, 0x1a, 0x42, 0xfc, 0xd0, 0x70, 0x47, 0xc0, 0x46, + 0xa4, 0x01, 0x00, 0x04, 0x01, 0x20, 0x70, 0x47, 0x01, 0x20, 0x70, 0x47, + 0x01, 0x20, 0x70, 0x47, 0x05, 0x4a, 0x13, 0x88, 0x05, 0x49, 0x0b, 0x40, + 0x80, 0x21, 0x09, 0x02, 0x0b, 0x43, 0x13, 0x80, 0x03, 0x4b, 0x18, 0x60, + 0x70, 0x47, 0xc0, 0x46, 0xa0, 0x01, 0x00, 0x04, 0xff, 0x9f, 0xff, 0xff, + 0xa4, 0x01, 0x00, 0x04, 0x50, 0x22, 0x10, 0xb5, 0x05, 0x4b, 0x1a, 0x70, + 0x05, 0x48, 0xff, 0xf7, 0xe7, 0xff, 0xff, 0xf7, 0xd5, 0xff, 0x04, 0x4b, + 0x18, 0x68, 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, 0xa8, 0x01, 0x00, 0x04, + 0x00, 0x00, 0x18, 0xa7, 0x10, 0x00, 0x10, 0x04, 0x82, 0x22, 0x70, 0xb5, + 0x04, 0x00, 0x1a, 0x4b, 0x1a, 0x48, 0x1a, 0x70, 0xff, 0xf7, 0xd2, 0xff, + 0x80, 0x21, 0x03, 0x22, 0x23, 0x00, 0x80, 0x25, 0x89, 0x00, 0x60, 0x18, + 0x13, 0x40, 0x16, 0x49, 0x2d, 0x04, 0x14, 0x42, 0x0b, 0xd1, 0x15, 0x4e, + 0x0a, 0x68, 0x2a, 0x42, 0x03, 0xd0, 0xa0, 0x42, 0x00, 0xd9, 0x08, 0xcc, + 0x33, 0x60, 0x0a, 0x68, 0x00, 0x2a, 0xf5, 0xdb, 0x15, 0xe0, 0x00, 0x23, + 0x0e, 0x4e, 0x0a, 0x68, 0x2a, 0x42, 0x0d, 0xd0, 0x84, 0x42, 0x0a, 0xd2, + 0x63, 0x78, 0x22, 0x78, 0x1b, 0x02, 0x13, 0x43, 0xa2, 0x78, 0x12, 0x04, + 0x1a, 0x43, 0xe3, 0x78, 0x1b, 0x06, 0x13, 0x43, 0x04, 0x34, 0x33, 0x60, + 0x0a, 0x68, 0x00, 0x2a, 0xeb, 0xdb, 0x70, 0xbc, 0x01, 0xbc, 0x00, 0x47, + 0xa8, 0x01, 0x00, 0x04, 0x00, 0x00, 0x18, 0xe1, 0xa4, 0x01, 0x00, 0x04, + 0x10, 0x00, 0x10, 0x04, 0x52, 0x22, 0x07, 0x4b, 0x10, 0xb5, 0x07, 0x48, + 0x1a, 0x70, 0xff, 0xf7, 0x93, 0xff, 0xff, 0xf7, 0x81, 0xff, 0x05, 0x4b, + 0x18, 0x68, 0x00, 0xf0, 0x1f, 0xfa, 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, + 0xa8, 0x01, 0x00, 0x04, 0x00, 0x00, 0x18, 0xa7, 0x10, 0x00, 0x10, 0x04, + 0xd0, 0xb5, 0x14, 0x00, 0x00, 0xf0, 0x1e, 0xfa, 0x0f, 0x00, 0x06, 0x00, + 0x06, 0x4b, 0x20, 0x00, 0x1e, 0x60, 0x5f, 0x60, 0xff, 0xf7, 0x78, 0xff, + 0xff, 0xf7, 0x66, 0xff, 0x03, 0x4b, 0x1b, 0x68, 0xd0, 0xbc, 0x01, 0xbc, + 0x00, 0x47, 0xc0, 0x46, 0xa8, 0x01, 0x00, 0x04, 0x10, 0x00, 0x10, 0x04, + 0x0b, 0x4b, 0x10, 0xb5, 0x1a, 0x43, 0x04, 0x04, 0x0b, 0x06, 0x1c, 0x43, + 0x80, 0x20, 0x0b, 0x0a, 0xa2, 0x21, 0x40, 0x00, 0xc9, 0x05, 0x20, 0x43, + 0x19, 0x43, 0xff, 0xf7, 0xd9, 0xff, 0xff, 0xf7, 0x6d, 0xff, 0x00, 0x28, + 0xfb, 0xd1, 0xff, 0xf7, 0xbd, 0xff, 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, + 0x00, 0x00, 0x18, 0xa7, 0xf8, 0xb5, 0x2f, 0x4b, 0x7b, 0x44, 0x0c, 0x00, + 0x15, 0x00, 0x1b, 0x68, 0x01, 0x29, 0x20, 0xd1, 0x00, 0x2b, 0x00, 0xd1, + 0x40, 0x02, 0x01, 0x00, 0x00, 0x22, 0x18, 0x20, 0xff, 0xf7, 0xd6, 0xff, + 0x28, 0x00, 0xff, 0xf7, 0x65, 0xff, 0xff, 0xf7, 0x4f, 0xff, 0x00, 0x28, + 0xfb, 0xd1, 0x56, 0x22, 0x24, 0x4b, 0x25, 0x48, 0x1a, 0x70, 0xff, 0xf7, + 0x35, 0xff, 0xff, 0xf7, 0x23, 0xff, 0x23, 0x4b, 0x1b, 0x68, 0xff, 0xf7, + 0x41, 0xff, 0x00, 0x28, 0xfb, 0xd1, 0x01, 0x20, 0xf8, 0xbc, 0x02, 0xbc, + 0x08, 0x47, 0x00, 0x2b, 0x00, 0xd1, 0x40, 0x02, 0x01, 0x00, 0x00, 0x22, + 0x19, 0x20, 0xff, 0xf7, 0xb5, 0xff, 0x18, 0x4f, 0x19, 0x4e, 0x00, 0x2c, + 0x11, 0xd1, 0x22, 0x00, 0x21, 0x00, 0x0c, 0x20, 0xff, 0xf7, 0xac, 0xff, + 0x56, 0x23, 0x14, 0x48, 0x3b, 0x70, 0xff, 0xf7, 0x13, 0xff, 0xff, 0xf7, + 0x01, 0xff, 0x33, 0x68, 0xff, 0xf7, 0x20, 0xff, 0x00, 0x28, 0xfb, 0xd1, + 0xdd, 0xe7, 0x56, 0x23, 0x0d, 0x48, 0x3b, 0x70, 0xff, 0xf7, 0x06, 0xff, + 0xff, 0xf7, 0xf4, 0xfe, 0x33, 0x68, 0xff, 0xf7, 0x13, 0xff, 0x00, 0x28, + 0xfb, 0xd1, 0x28, 0x00, 0xff, 0xf7, 0x22, 0xff, 0xff, 0xf7, 0x0c, 0xff, + 0x00, 0x28, 0xfb, 0xd1, 0x80, 0x23, 0x9b, 0x00, 0xed, 0x18, 0x01, 0x3c, + 0xd1, 0xe7, 0xc0, 0x46, 0x1c, 0x04, 0x00, 0x00, 0xa8, 0x01, 0x00, 0x04, + 0x00, 0x00, 0x18, 0xa7, 0x10, 0x00, 0x10, 0x04, 0x30, 0x23, 0xbe, 0x21, + 0x03, 0x43, 0x1b, 0x04, 0xc9, 0x05, 0x10, 0xb5, 0x00, 0x20, 0x05, 0x4a, + 0x19, 0x43, 0xff, 0xf7, 0x5b, 0xff, 0xc0, 0x20, 0x80, 0x00, 0x00, 0xf0, + 0x91, 0xf9, 0x10, 0xbc, 0x01, 0xbc, 0x00, 0x47, 0x00, 0x00, 0x18, 0xa7, + 0xcc, 0x21, 0x70, 0xb5, 0x00, 0x24, 0x63, 0x4b, 0x63, 0x4a, 0x7b, 0x44, + 0xc9, 0x05, 0x00, 0x20, 0x1c, 0x60, 0xff, 0xf7, 0x47, 0xff, 0x20, 0x00, + 0xff, 0xf7, 0xde, 0xff, 0x07, 0x20, 0xff, 0xf7, 0xdb, 0xff, 0x80, 0x20, + 0xa2, 0x21, 0x5d, 0x4a, 0xc9, 0x05, 0xc0, 0x00, 0xff, 0xf7, 0x3a, 0xff, + 0x80, 0x20, 0x40, 0x01, 0x00, 0xf0, 0x70, 0xf9, 0xa2, 0x21, 0x00, 0x20, + 0x57, 0x4a, 0xc9, 0x05, 0xff, 0xf7, 0x30, 0xff, 0xff, 0xf7, 0xc4, 0xfe, + 0x00, 0x28, 0xfb, 0xd1, 0xa0, 0x20, 0xa2, 0x21, 0x52, 0x4a, 0xc0, 0x00, + 0xc9, 0x05, 0xff, 0xf7, 0x25, 0xff, 0x50, 0x4a, 0x50, 0x48, 0x51, 0x49, + 0xff, 0xf7, 0x20, 0xff, 0x50, 0x4c, 0xff, 0xf7, 0xb3, 0xfe, 0x00, 0x28, + 0x77, 0xd1, 0xff, 0xf7, 0x03, 0xff, 0xab, 0x38, 0xff, 0x38, 0x00, 0x28, + 0x7b, 0xd1, 0x4c, 0x4d, 0xa2, 0x21, 0x47, 0x4a, 0x4b, 0x48, 0xc9, 0x05, + 0xff, 0xf7, 0x0e, 0xff, 0x47, 0x4c, 0xff, 0xf7, 0xa1, 0xfe, 0x00, 0x28, + 0x72, 0xd1, 0xff, 0xf7, 0xf1, 0xfe, 0x80, 0x22, 0x29, 0x00, 0x29, 0x20, + 0x52, 0x01, 0xff, 0xf7, 0x19, 0xff, 0x00, 0x28, 0xea, 0xda, 0xa2, 0x21, + 0x42, 0x4b, 0x40, 0x00, 0xc0, 0x0f, 0x7b, 0x44, 0x18, 0x60, 0x3a, 0x4a, + 0x40, 0x48, 0xc9, 0x05, 0xff, 0xf7, 0xf4, 0xfe, 0xff, 0xf7, 0x88, 0xfe, + 0x00, 0x28, 0xfb, 0xd1, 0xff, 0xf7, 0xd8, 0xfe, 0x04, 0x24, 0xa2, 0x21, + 0x33, 0x4a, 0x3b, 0x48, 0xc9, 0x05, 0xff, 0xf7, 0xe7, 0xfe, 0xff, 0xf7, + 0x7b, 0xfe, 0x00, 0x28, 0xfb, 0xd1, 0x01, 0x3c, 0xff, 0xf7, 0xca, 0xfe, + 0x00, 0x2c, 0xf0, 0xd1, 0xa2, 0x21, 0x35, 0x4a, 0x35, 0x48, 0xc9, 0x05, + 0xff, 0xf7, 0xd8, 0xfe, 0xff, 0xf7, 0x6c, 0xfe, 0x05, 0x1e, 0xfb, 0xd1, + 0x80, 0x22, 0x01, 0x00, 0x52, 0x01, 0x03, 0x20, 0xff, 0xf7, 0xe6, 0xfe, + 0x80, 0x22, 0x04, 0x0c, 0x24, 0x04, 0x21, 0x00, 0x52, 0x01, 0x07, 0x20, + 0xff, 0xf7, 0xde, 0xfe, 0x80, 0x22, 0x21, 0x00, 0x52, 0x01, 0x37, 0x20, + 0xff, 0xf7, 0xd8, 0xfe, 0x80, 0x22, 0x02, 0x21, 0x52, 0x01, 0x06, 0x20, + 0xff, 0xf7, 0xd2, 0xfe, 0x80, 0x22, 0x80, 0x21, 0x52, 0x01, 0x89, 0x00, + 0x10, 0x20, 0xff, 0xf7, 0xcb, 0xfe, 0x28, 0x00, 0xff, 0xf7, 0x4a, 0xff, + 0x05, 0x20, 0xff, 0xf7, 0x47, 0xff, 0x1f, 0x4b, 0x7b, 0x44, 0x1b, 0x68, + 0x00, 0x2b, 0x02, 0xd0, 0x0d, 0x20, 0xff, 0xf7, 0x3f, 0xff, 0x01, 0x20, + 0x16, 0xe0, 0x01, 0x3c, 0x00, 0x2c, 0x00, 0xd0, 0x7f, 0xe7, 0x20, 0x00, + 0xff, 0xf7, 0x36, 0xff, 0x07, 0x20, 0xff, 0xf7, 0x33, 0xff, 0xfc, 0x25, + 0x2d, 0x04, 0x81, 0xe7, 0x01, 0x3c, 0x00, 0x2c, 0x85, 0xd1, 0x20, 0x00, + 0xff, 0xf7, 0x2a, 0xff, 0x07, 0x20, 0xff, 0xf7, 0x27, 0xff, 0x20, 0x00, + 0x70, 0xbc, 0x02, 0xbc, 0x08, 0x47, 0xc0, 0x46, 0x1e, 0x03, 0x00, 0x00, + 0x00, 0x60, 0x58, 0xa7, 0x00, 0x10, 0x18, 0xa7, 0x00, 0x01, 0x08, 0xaa, + 0x01, 0x00, 0x00, 0x51, 0x0f, 0x27, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x40, + 0x00, 0x01, 0x37, 0x00, 0x7a, 0x02, 0x00, 0x00, 0x00, 0x02, 0x02, 0x00, + 0x00, 0x03, 0x02, 0x00, 0x00, 0x00, 0x18, 0xa7, 0x00, 0x05, 0x02, 0x00, + 0xdc, 0x01, 0x00, 0x00, 0xf8, 0xb5, 0x2d, 0x4b, 0x7b, 0x44, 0x1b, 0x68, + 0x0d, 0x00, 0x14, 0x00, 0x00, 0x2b, 0x00, 0xd1, 0x40, 0x02, 0xa8, 0x21, + 0x03, 0x0a, 0xc9, 0x05, 0x28, 0x4a, 0x00, 0x06, 0x19, 0x43, 0xff, 0xf7, + 0x5b, 0xfe, 0x27, 0x4e, 0x80, 0x23, 0x27, 0x4f, 0x33, 0x70, 0x24, 0x48, + 0xff, 0xf7, 0xd8, 0xfd, 0xff, 0xf7, 0xc6, 0xfd, 0x3b, 0x68, 0x00, 0x2b, + 0xf4, 0xd1, 0x81, 0x33, 0x33, 0x70, 0x22, 0x48, 0xff, 0xf7, 0xce, 0xfd, + 0x80, 0x23, 0x80, 0x21, 0x9b, 0x00, 0x20, 0x4a, 0xe6, 0x18, 0x09, 0x04, + 0xa3, 0x07, 0x1c, 0xd0, 0x13, 0x68, 0x0b, 0x42, 0x0a, 0xd0, 0x3b, 0x68, + 0xa6, 0x42, 0x07, 0xd9, 0x18, 0x0a, 0x23, 0x70, 0x60, 0x70, 0x18, 0x0c, + 0x1b, 0x0e, 0xa0, 0x70, 0xe3, 0x70, 0x04, 0x34, 0x13, 0x68, 0x00, 0x2b, + 0xee, 0xdb, 0x01, 0x3d, 0x00, 0x2d, 0x13, 0xd1, 0x2a, 0x00, 0x29, 0x00, + 0x0c, 0x20, 0xff, 0xf7, 0x41, 0xfe, 0x01, 0x20, 0xf8, 0xbc, 0x02, 0xbc, + 0x08, 0x47, 0x13, 0x68, 0x0b, 0x42, 0x03, 0xd0, 0x3b, 0x68, 0xa6, 0x42, + 0x00, 0xd9, 0x08, 0xc4, 0x13, 0x68, 0x00, 0x2b, 0xf5, 0xdb, 0xe8, 0xe7, + 0xe0, 0x20, 0xa2, 0x21, 0x04, 0x4a, 0xc0, 0x00, 0xc9, 0x05, 0xff, 0xf7, + 0x13, 0xfe, 0x34, 0x00, 0xb5, 0xe7, 0xc0, 0x46, 0x58, 0x01, 0x00, 0x00, + 0x00, 0x00, 0x18, 0xa7, 0xa8, 0x01, 0x00, 0x04, 0x10, 0x00, 0x10, 0x04, + 0x00, 0x00, 0x18, 0xa1, 0xa4, 0x01, 0x00, 0x04, 0x10, 0xb5, 0xff, 0xf7, + 0xaf, 0xfe, 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, 0x01, 0x20, 0x70, 0x47, + 0x01, 0x20, 0x70, 0x47, 0x10, 0xb5, 0xff, 0xf7, 0x8b, 0xff, 0x01, 0x20, + 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, 0x10, 0xb5, 0xff, 0xf7, 0x22, 0xfe, + 0x01, 0x20, 0x10, 0xbc, 0x02, 0xbc, 0x08, 0x47, 0x01, 0x20, 0x70, 0x47, + 0x10, 0x21, 0x02, 0x06, 0x03, 0x0e, 0xc8, 0x41, 0x13, 0x43, 0x02, 0x06, + 0x00, 0x0e, 0x10, 0x43, 0xc8, 0x41, 0x18, 0x43, 0x70, 0x47, 0xc0, 0x46, + 0x10, 0x22, 0x30, 0xb5, 0x0b, 0x00, 0x04, 0x06, 0x01, 0x0e, 0xd0, 0x41, + 0x21, 0x43, 0x04, 0x06, 0x00, 0x0e, 0x20, 0x43, 0xd0, 0x41, 0x1d, 0x06, + 0x1c, 0x0e, 0xd3, 0x41, 0x01, 0x43, 0x2c, 0x43, 0x18, 0x0e, 0x1d, 0x06, + 0x28, 0x43, 0xd0, 0x41, 0x20, 0x43, 0x30, 0xbc, 0x04, 0xbc, 0x10, 0x47, + 0x78, 0x47, 0xfd, 0xe7, 0x97, 0xfe, 0xff, 0xea, 0xf8, 0xbc, 0x08, 0xbc, + 0x9e, 0x46, 0x70, 0x47, 0x00, 0x00, 0x00, 0x00 +}; \ No newline at end of file diff --git a/arm9/dldi-include/dldi-include.h b/arm9/dldi-include/dldi-include.h index 68253e6..d6a84ce 100644 --- a/arm9/dldi-include/dldi-include.h +++ b/arm9/dldi-include/dldi-include.h @@ -2,5 +2,7 @@ #define DLDIINCLUDE_H extern unsigned char ak2_dldi[]; +// extern unsigned char dstwo_dldi[]; +// extern unsigned char ttio_dldi[]; #endif //DLDIINCLUDE_H diff --git a/arm9/source/driveOperations.cpp b/arm9/source/driveOperations.cpp index d8439fa..8f73ae7 100644 --- a/arm9/source/driveOperations.cpp +++ b/arm9/source/driveOperations.cpp @@ -347,13 +347,6 @@ TWL_CODE void dldiLoadFromBin (const u8 dldiAddr[]) { dldiSize = (dldiSize + 0x03) & ~0x03; // Round up to nearest integer multiple dldiRelocateBinary ((data_t*)dldiAddr, dldiSize); - - if (device->ioInterface.features & FEATURE_SLOT_GBA) { - sysSetCartOwner(BUS_OWNER_ARM9); - } - if (device->ioInterface.features & FEATURE_SLOT_NDS) { - sysSetCardOwner(BUS_OWNER_ARM9); - } } TWL_CODE bool UpdateCardInfo(char* gameid, char* gamename) { @@ -416,7 +409,10 @@ TWL_CODE bool twl_flashcardMount(void) { || !memcmp(gameid, "ACEK", 4) || !memcmp(gameid, "YCEP", 4) || !memcmp(gameid, "AHZH", 4) || !memcmp(gameid, "CHPJ", 4) || !memcmp(gameid, "ADLP", 4)) { // Acekard 2(i) dldiLoadFromBin(ak2_dldi); fatMountSimple("fat", dldiGet()); - } + } /* else if (!memcmp(gameid, "ALXX", 4)) { // SuperCard DSTWO + dldiLoadFromBin(dstwo_dldi); + fatMountSimple("fat", dldiGet()); + } */ if (flashcardFound()) { fatGetVolumeLabel("fat", fatLabel);