Skip to content

Instantly share code, notes, and snippets.

View freem's full-sized avatar
⛏️
work continues

AJ Kelly freem

⛏️
work continues
View GitHub Profile
@JettMonstersGoBoom
JettMonstersGoBoom / NCM16x8.cs
Last active December 28, 2022 19:44
NCM plugin code for Mega65 NCM
using System;
using System.Drawing;
using CharactorLib.Common;
using CharactorLib.Format;
namespace ncm_16x8
{
public class ncm_16x8 : FormatBase
{
public ncm_16x8()
@badosu
badosu / how-to-tweak.md
Last active April 10, 2024 20:26
Tweak Options Guide
#!/usr/bin/python3
import sys
#
# NBA Jam/Midway IMG format parser
# https://github.com/historicalsource/nba-jam
#
if __name__ == '__main__':
@shakesoda
shakesoda / gc-simple.frag.glsl
Created February 24, 2021 06:05
simple per vertex shading example
#version 330
in vec2 uv;
in vec3 diffuse;
in vec3 specular;
in vec2 color_mixes; // x=diffuse mix, y=specular mix
out vec4 outColor;
uniform sampler2D texture0;
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active February 19, 2024 09:42
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@robey
robey / apple1-rom.txt
Last active May 22, 2023 03:49
apple 1 ROM disassembly
;
; the "monitor ROM" of an apple 1 fit in one page (256 bytes).
;
; this is my attempt to take the disassembled code, give names to the
; variables and routines, and try to document how it worked.
;
;
; an apple 1 had 8KB of RAM (more, if you hacked on the motherboard), and a
; peripheral chip that drove the keyboard and video. the video was run by a
; side processor that could treat the display as an append-only terminal that
@daveshah1
daveshah1 / vtbin2nes.py
Created February 2, 2018 18:59
VTxx BIN to NES 2.0 converter
#!/usr/bin/env python3
import os, sys
import argparse
def main():
parser = argparse.ArgumentParser(description='Convert VTxx BIN format to NES 2.0 format')
parser.add_argument('infile', metavar='infile', type=str, nargs=1,
help='Input .bin file')
parser.add_argument('-m', '--mapper', action='store', default=256,
help='NES 2.0 mapper number (default: 256)')
@JayFoxRox
JayFoxRox / convert.sh
Created January 7, 2018 05:41
N64 ROM (z64) to ELF
#!/usr/bin/bash
# Get entry point from N64 ROM
dd if=test.z64 bs=1 skip=8 count=4 of=entrypoint >& /dev/null
# Convert entrypoint to little endian
#mips-elf-objcopy -I binary -O binary --reverse-bytes=4 entrypoint entrypoint
# Construct an ELF
mips-elf-objcopy -I binary test.z64 -O elf32-bigmips -B mips --adjust-section-vma .data+0x80000000 foo.elf
# Patch to MIPS III
printf '\x20\x00\x00\x00' | dd bs=1 seek=36 count=4 conv=notrunc of=foo.elf >& /dev/null
@iamgreaser
iamgreaser / thps-format-psx.md
Last active August 13, 2022 23:30
`*.psx` - Apocalypse / THPS / Spiderman / whatever model format

*.psx - Apocalypse / THPS / Spiderman / whatever model format

Documented by GreaseMonkey

Document version v2

I release this document into the public domain.

This information aims to cover the format used as per the PS1 and PC versions of THPS2.