Skip to content

Instantly share code, notes, and snippets.

@karmic64
karmic64 / a.c
Created December 12, 2023 15:16
Cardcaptor Sakura - Itsumo Sakura-chan to Issho (GBC) graphics ripper
/*
Cardcaptor Sakura - Itsumo Sakura-chan to Issho (GBC) graphics ripper by karmic, June 18 2022
Requires libpng (compile with -lpng)
ROM file should be V1.1 (CRC32 43F28E22)
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@karmic64
karmic64 / lfg.c
Last active December 21, 2023 22:42
Shizuku (PC-98) .LFG to .PNG converter
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <setjmp.h>
#include <png.h>
@karmic64
karmic64 / a.c
Created January 27, 2022 16:24
Hydlide (NES) map ripper
/***
hydlide (nes) map ripper
coded by karmic, jan 27 2022
requires libpng (compile with "-lpng")
rom must be in the working directory and called "Hydlide (U) [!].nes"
@karmic64
karmic64 / a.c
Last active January 22, 2022 14:12
Mad Max (NES) map ripper
/*
mad max nes map ripper
coded by karmic, sep 3-4, 2021
massively improved jan 22, 2021
requires libpng (compile with -lpng)
rom must be in the working directory and called "Mad Max (U) [!].nes"
*/
@karmic64
karmic64 / Xevious - show bombable objects.lua
Created January 22, 2022 03:17
Xevious (NES) Mesen Lua script that shows bombable objects
-- xevious NES Mesen "show bombable objects" Lua script
-- coded by karmic, july 10 2021
-- slightly improved jan 21 2022
function read(addr)
return emu.read(addr, emu.memType.cpuDebug)
end
function readbeword(addr)
lo = read(addr+1)
@karmic64
karmic64 / Bill & Ted.lua
Created January 21, 2022 02:18
Bill & Ted NES Mesen lua script
-- bill & ted NES Mesen lua script
-- coded by karmic, jan 18-20, 2022
figure_names = {"Cleopatra","Confucius","King Arthur","Christopher Columbus","Paul Revere","Jesse James","Al Capone","Elvis","Julius Caesar","Robin Hood","Rembrandt","William Shakespeare","George Washington","Sitting Bull","Thomas Edison","Marilyn Monroe","A stranger"}
bait_names = {"Major credit card","Fortune cookie","Holy grail","Compass","Megaphone","Uzi","Book of lawyer stuff","Headstone","Salad dressing","Bag-o-money","Paint roller","Stage prop","Pair of choppers","Lawn chair","Compact disc","Rose","Some stuff"}
good_stuff_names = {"Pudding","Firecracker","Textbook","Cassette tape","Coin","Key"}
-- helper functions
function concat11(lo, hi)
return lo | (hi << 8)
@karmic64
karmic64 / a.c
Created January 17, 2022 09:07
Bill & Ted NES map ripper
/***
bill & ted nes map ripper
written by karmic, jul 10-11, 2021
slightly improved jan 16-17, 2022
requires libpng (compile with "-lpng")
rom must be in the working directory and called "Bill & Ted's Excellent Video Game Adventure (U) [!].nes"
@karmic64
karmic64 / convert.c
Created January 16, 2022 04:04
Megapanel (MegaDrive) graphics ripper
/***
Megapanel (MegaDrive) ripper written by karmic, jan 14-15, 2022
requires libpng (use the option "-lpng" on command line when compiling)
rom must be in the working directory and called "Megapanel (J) [c][!].bin"
***/