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
/* LZRA Decompressor | |
* The format appears similar to LZRC (see tlzrc.c) | |
*/ | |
#include <array> | |
#include <cstdint> | |
#include <cstring> | |
#include <cstdio> | |
typedef uint8_t u8; | |
typedef uint32_t u32; |
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
unsigned __int8 *__fastcall process_cmd(struct_a1 *a1, int a2, int a3, unsigned __int8 *pkt, signed int pkt_len) | |
{ | |
unsigned __int8 *pkt_; // r0@1 MAPDST | |
int v10; // r0@2 | |
int v11; // r12@8 | |
unsigned __int8 v12; // r0@13 | |
signed int b0; // r0@15 | |
int v14; // r0@38 | |
unsigned __int8 v15; // r1@46 | |
unsigned int v16; // r2@51 |
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 <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/mman.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#define ARRAYSIZE(x) (sizeof(x) / sizeof(*x)) |
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
#define _CRT_SECURE_NO_WARNINGS | |
#include <cstdio> | |
#include <cstdint> | |
#include <memory> | |
#include <map> | |
#include <list> | |
#include <vector> | |
#include <set> | |
#include <algorithm> | |
#include "crypto.h" |
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
diff --git a/liteeth/phy/ecp5rgmii.py b/liteeth/phy/ecp5rgmii.py | |
index 9bb1999..8899aaa 100644 | |
--- a/liteeth/phy/ecp5rgmii.py | |
+++ b/liteeth/phy/ecp5rgmii.py | |
@@ -66,8 +66,10 @@ class LiteEthPHYRGMIIRX(Module): | |
assert rx_delay_taps < 128 | |
rx_ctl_delayf = Signal() | |
- rx_ctl = Signal() | |
- rx_ctl_reg = Signal() |
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
// attempting to create 100mhz ->pll-> 125mhz | |
// note clarity seems to suggest buffering clk100 since it's coming from pads, and | |
// various parameters differ from litex (besides defaulted ones) | |
// litex | |
(* FREQUENCY_PIN_CLKI = "100.0", | |
ICP_CURRENT = "6", | |
LPF_RESISTOR = "16", | |
MFG_ENABLE_FILTEROPAMP = "1", | |
MFG_GMCREF_SEL = "2" *) |
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
''' | |
Input MD5 : BB4E83D7A77AADD7F62728314EF09461 | |
File Name : C:\Program Files (x86)\Powersaves For AMIIBO\Powersaves For AMIIBO.exe | |
0x108fd0 : schannel_recv -> log buffer on end | |
0x1090d0 : schannel_recv end | |
0x108d10 : schannel_send -> log buffer on start | |
0xce61 : deals with https "Token" | |
0xceab : deals with https "Vuid" |
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 set_affinity(int cpu) { | |
int policy = SCHED_FIFO; | |
struct sched_param param = { | |
.sched_priority = sched_get_priority_max(policy) | |
}; | |
pthread_setschedparam(pthread_self(), policy, ¶m); | |
cpu_set_t cpuset; | |
CPU_ZERO(&cpuset); | |
CPU_SET(cpu, &cpuset); |
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
# arm core is ARM7TDMI-S | |
set(CMAKE_SYSTEM_NAME Generic) | |
set(CMAKE_C_COMPILER arm-none-eabi-gcc) | |
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) | |
#set(CMAKE_C_STANDARD 11) | |
#set(CMAKE_C_EXTENSIONS, TRUE) |
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 LZRA_decompress(u8 *dest, u32 out_size, u8 *compress_data, u8 **next_ptr) { | |
u8 *input; // r11@1 | |
int v7; // r3@1 | |
u8 v8; // r6@1 | |
int v9; // r4@1 | |
s32 v10; // lr@7 | |
u8 *v11; // r12@7 | |
u32 v12; // r9@7 | |
s32 v13; // r3@7 | |
u8 *v14; // r1@8 |
NewerOlder