View ipc_handler.c
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
{ | |
typedef struct | |
{ | |
u32 init; | |
u32 capacity; | |
} TestResults; | |
TestResults *const testResults = (TestResults*)(VRAM_BASE + VRAM_SIZE - sizeof(TestResults)); | |
memset(testResults, 0, sizeof(TestResults)); | |
result = SDMMC_init(SDMMC_DEV_eMMC); |
View gamecard.c
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
#include <string.h> | |
#include "mem_map.h" | |
#include "types.h" | |
#include "util.h" | |
#include "arm9/hardware/gamecard.h" | |
#include "arm9/ncch.h" | |
#include "arm9/hardware/crypto.h" | |
#include "arm9/hardware/timer.h" | |
View main.c
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
#include <stdio.h> | |
#include <3ds.h> | |
#define REVERSE_INTERVAL (60u * 15) | |
static void setLcdFill(const u32 val) | |
{ |
View sha_tests.txt
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
3 MiB: | |
vector: 15926306 | |
struct: 16319471 | |
1 KiB: | |
vector: 5597 | |
struct: 5758 | |
128 bytes: | |
vector: 1057/1085 |
View pcTest.s
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
@ u32 pcTest(void) | |
@ Expected result is pc + 8 but it's pc + 10 on ARM7. | |
BEGIN_ASM_FUNC pcTest | |
ldr pc, =pcTest_mov + 2 | |
pcTest_mov: | |
mov r0, pc | |
bx lr | |
END_ASM_FUNC |
View sound_test.c
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
#include <inttypes.h> | |
#include <gba_console.h> | |
#include <gba_video.h> | |
#include <gba_interrupt.h> | |
#include <gba_systemcalls.h> | |
#include <gba_input.h> | |
#include <gba_sound.h> | |
#include <gba_timers.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
View codecCoeffConvert.c
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
#include <math.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// Compile with "gcc -std=c17 -O2 -fstrict-aliasing -ffunction-sections -Wall -Wl,--gc-sections codecCoeffConvert.c -o codecCoeffConvert -lm" | |
int main(int argc, char *argv[]) |
View lgyFbScaler.cpp
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
/* | |
* Copyright (C) 2021 profi200 | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
View test.c
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
... | |
int main(void) // send test | |
{ | |
irqInit(); | |
irqEnable(IRQ_VBLANK); | |
consoleDemoInit(); | |
REG_KEYCNT = 0; | |
iprintf("reg align 16 test value: %X\n", 0xCAFE); |
View lgy_link.s
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
... | |
@ void lgyLinkSend32(const u32 *src, u32 size) | |
BEGIN_ASM_FUNC lgyLinkSend32, thumb | |
add r1, r0, r1 @ r1 = r0 + r1; | |
ldr r2, =0x04000132 @ r2 = ®_KEYCNT; | |
push {r4, r5} @ Save r4 and r5. | |
ldr r3, =0x01000100 @ r3 = 0x01000100; | |
lgyLinkSend32_lp: | |
ldmia r0!, {r4} @ r4 = *r0++; |
NewerOlder