Skip to content

Instantly share code, notes, and snippets.

@GMMan
GMMan / cc2640r2f_rom_dumping.md
Created July 2, 2024 05:13
Dumping ROMs from TI CC2640R2F

Dumping ROMs from TI CC2640R2F

Main flash

Memory address 0x0 to 0x1ffff. Dump over JTAG or built-in bootloader (if enabled).

Boot ROM

Memory address 0x10000000 to 0x1001cbff. Dump over JTAG or built-in bootloader.

@GMMan
GMMan / cc2640r2f_rfcbits.md
Last active July 2, 2024 03:36
RFCBITS register documentation for TI CC2640R2F

RFCBITS @ 0x400821cc

Values indicate bit mask.

  • 0x00000001: boot type: 0 = with command, 1 = special boot

Boot with command

Command specified will be executed immediately after boot init (unverified), unless command is 0, which will result in a completely normal boot.

Special boot

  • 0xe0000000: 7 = special request, otherwise execute code out of address specified by RFCBITS
@GMMan
GMMan / MceSourceSplit.cs
Created June 30, 2024 21:20
TI MCE patch source splitter
// See https://aka.ms/new-console-template for more information
using System.Text.RegularExpressions;
string inFile = @"your_patch_file.c";
string outDir = @"your_output_dir";
Regex patternRegex = new Regex(@"; (.+?):\s+(\d+) (.*)");
using StreamReader sr = File.OpenText(inFile);
Directory.CreateDirectory(outDir);
@GMMan
GMMan / be_battles.md
Last active February 11, 2023 23:33
Vital Bracelet BE Battle Logic

Vital Bracelet BE Battle Logic

If you're looking for Vital Bracelet (Digital Monster, Digivice -V-, Characters, Vital Hero) battle logic, please see here.

Encounter and setup

Each character on a BEM has three encounter chance percentages: one for phase 1-4, one for phase 5-7, and one for phase 8. For Dims and VBMs, there is no

@GMMan
GMMan / build_xtrapc_ultra.md
Last active November 12, 2022 08:59
Xtra-PC Ultra Build Guide

Building Xtra-PC Ultra from Source

Superseded by this repo. See wiki page for build instructions.

@GMMan
GMMan / gpce4_test.md
Created August 4, 2022 06:01
GPCE4 Test Program

GPCE4 Test Program

Entry

Before powering on the MCU, raise TEST pin high, configure wait states, select the test to run, and configure any inputs.

Test mode selection

Determines whether MCU starts in test mode.

@GMMan
GMMan / passwords.txt
Created October 27, 2021 20:17
Dragon Quest: The Adventure of Dai - Portable Adventure passwords
Note that the first one appears to be a story unlock password. Not sure what
that means since I kind of skipped over the message box that displayed for it.
Original page for that is at https://www.takaratomy-arts.co.jp/specials/dqdai-pa/pw/
6B8HY 10xやくそう
NUGBV 30xやくそう
LBKWF 30xやくそう
K5L2Z 30xやくそう
YWVYC 30xやくそう
VCGVU 30xやくそう
@GMMan
GMMan / vb_battles.md
Last active December 31, 2022 00:59
Digimon Vital Bracelet Battle Logic

Digimon Vital Bracelet Battle Logic

If you're looking for Vital Bracelet BE battle logic, please see here.

Encounter and setup

Each Digimon on a Dim has two encounter chance percentages: one for when your current Digimon is a Rookie or Champion, and one for Ultimate or Mega. A

@GMMan
GMMan / S90overclock
Created January 25, 2021 20:25
Overclock script for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
}
stop() {
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
cat "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_boot_freq" > "/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq"
@GMMan
GMMan / S40rndis
Created January 7, 2021 17:12
RNDIS enabler for Densha de Go! Plug & Play
#!/bin/sh -e
start() {
echo "rndis" > "/sys/class/android_usb/android0/functions"
echo 1 > "/sys/class/android_usb/android0/f_rndis/wceis"
echo 1 > "/sys/class/android_usb/android0/enable"
sleep 1
ifconfig rndis0 169.254.215.100 netmask 255.255.0.0
}