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
#!/usr/bin/env python3 | |
import os, sys | |
import hashlib | |
# DSP1/2/3/4 file: 8192 bytes | |
# Program (6144 bytes, 24-bit words) + Data (2048 bytes, 16-bit words) | |
# Reverses word byte ordering | |
def create_dsp(source_filename, dest_filename, source_checksum): | |
source_file = None | |
try: |
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 <string.h> | |
// IPS Decoder. Created by tjanas. | |
// Prints instructions from IPS patches. | |
// Usage: <ips_decode> <patch_file.ips> | |
// Public domain | |
// | |
// IPS file format (https://zerosoft.zophar.net/ips.php): | |
// _______________________________________________________________________ |
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 <cstdio> | |
#include <cstdlib> | |
#include <cstdint> | |
#include <cstring> | |
// BPS Decoder. Created by tjanas. | |
// Prints instructions from BPS patches. | |
// Usage: <bps_decode> <patch_file.bps> | |
// Compile: g++ -o bps_decode bps_decode.cpp -std=c++11 | |
// BPS file format created by byuu. https://byuu.org/ |