Skip to content

Instantly share code, notes, and snippets.

@karmic64
karmic64 / a.c
Created Jan 27, 2022
Hydlide (NES) map ripper
View a.c
/***
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 Jan 22, 2022
Mad Max (NES) map ripper
View a.c
/*
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 Jan 22, 2022
Xevious (NES) Mesen Lua script that shows bombable objects
View Xevious - show bombable objects.lua
-- 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 Jan 21, 2022
Bill & Ted NES Mesen lua script
View Bill & Ted.lua
-- 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 Jan 17, 2022
Bill & Ted NES map ripper
View a.c
/***
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 Jan 16, 2022
Megapanel (MegaDrive) graphics ripper
View convert.c
/***
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"
***/