-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1543a37
commit eaec01c
Showing
6 changed files
with
73 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// SPDX-License-Identifier: Zlib | ||
// | ||
// Copyright (C) 2006-2016 Michael Chisholm (Chishm) | ||
// Copyright (C) 2006-2016 Dave Murphy (WinterMute) | ||
|
||
#include <nds/arm9/dldi_asm.h> | ||
|
||
.section ".crt0","ax" | ||
.global _start | ||
.align 4 | ||
.arm | ||
|
||
@ Driver patch file standard header -- 16 bytes | ||
|
||
.word 0xBF8DA5ED @ Magic number to identify this region | ||
.asciz " Chishm" @ Identifying Magic string (8 bytes with null terminator) | ||
.byte 0x01 @ Version number | ||
.byte DLDI_SIZE_4KB @ Log [base-2] of the size of this driver in bytes. | ||
.byte FIX_GOT | FIX_BSS | FIX_GLUE @ Sections to fix | ||
.byte 0x00 @ Space allocated in the application, leave empty. | ||
|
||
@ Text identifier - can be anything up to 47 chars + terminating null -- 48 bytes | ||
|
||
.align 4 | ||
.asciz "SuperCard (SD Card)" | ||
|
||
@ Offsets to important sections within the data -- 32 bytes | ||
|
||
.align 6 | ||
.word __text_start @ data start | ||
.word __data_end @ data end | ||
.word __glue_start @ Interworking glue start -- Needs address fixing | ||
.word __glue_end @ Interworking glue end | ||
.word __got_start @ GOT start -- Needs address fixing | ||
.word __got_end @ GOT end | ||
.word __bss_start @ bss start -- Needs setting to zero | ||
.word __bss_end @ bss end | ||
|
||
@ IO_INTERFACE data -- 32 bytes | ||
|
||
.ascii "XXXX" @ ioType (Normally "DLDI") | ||
.word FEATURE_MEDIUM_CANREAD | FEATURE_MEDIUM_CANWRITE | FEATURE_SLOT_GBA | ||
.word _SCSD_startUp @ Function pointers to standard device driver functions | ||
.word _SCSD_isInserted | ||
.word _SCSD_readSectors | ||
.word _SCSD_writeSectors | ||
.word _SCSD_clearStatus | ||
.word _SCSD_shutdown | ||
|
||
_start: | ||
|
||
.align | ||
.pool | ||
.end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.