Skip to content

Instantly share code, notes, and snippets.

Brad Smith bbbradsmith

Block or report user

Report or block bbbradsmith

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bbbradsmith
bbbradsmith / stx_dump.py
Created Sep 7, 2019
Pasti STX disk image python info dumper (Atari ST)
View stx_dump.py
#!/usr/bin/env python3
#
# Pasti .STX Atari ST disk image info dumper
# Prints out a human-readable version of all data found in the file
#
# Usage:
# stx_dump("a.stx")
#
# Based on Pasti reverse engineering:
@bbbradsmith
bbbradsmith / rrdump.py
Created Sep 6, 2019
Read & Rhyme (Atari ST) python image file dumper
View rrdump.py
#!/usr/bin/env python3
#
# Python script for dumping images from Read & Rhyme (Atari ST)
# Brad Smith, 2019
# http://rainwarrior.ca
#
# Format is very simple:
# 1 x WORD header? always 0.
# 16 x WORD palette
@bbbradsmith
bbbradsmith / aspetra_dump.py
Last active Aug 12, 2019
Aspetra (DOS) data file formats and python dump script
View aspetra_dump.py
#!/usr/bin/env python3
#
# Python script for dumping data from Aspetra.
# Prerequisite: PIL
#
# Brad Smith, 2019
# http://rainwarrior.ca
#
#
@bbbradsmith
bbbradsmith / blades_of_steel_ppudata.py
Created Mar 6, 2019
Blades of Steel PPU data (CHR/nametable) decoder and encoder
View blades_of_steel_ppudata.py
#!/usr/bin/env python3
#
# Python script for decoding or re-encoding PPU data
# (CHR or nametable) bundles from Blades of Steel.
#
# See bottom of this file for example usage.
#
rom_filename = "Blades of Steel (U).nes"
@bbbradsmith
bbbradsmith / circlemap.py
Last active Feb 20, 2019
Example renderings of the chaotic Circle Map. - Details: https://www.patreon.com/posts/24826459
View circlemap.py
#!/usr/bin/env python3
#
# circlemap.py
# Brad Smith, 2019
# http://rainwarrior.ca
#
# Example renderings of the chaotic Circle Map.
# http://mathworld.wolfram.com/CircleMap.html
import sys
@bbbradsmith
bbbradsmith / makeflop.md
Last active Apr 21, 2019
Simple file operations for a FAT12 floppy disk image. (Moved to GitHub)
@bbbradsmith
bbbradsmith / avecta.py
Last active Dec 13, 2018
Avecta (Atari ST) data dumper
View avecta.py
# Avecta I: Ebora is an Atari ST game published in STart Magazine, September 1989
#
# Information here:
# https://www.atarimagazines.com/startv4n2/avecta.html
#
# This program parses its data files, and generates maps from it.
# The file formats can be deduced from the program.
# Some of the data is described in comments.
import PIL.Image
@bbbradsmith
bbbradsmith / nes_blocky.py
Last active Feb 4, 2019
NES blocky graphics converter - Details: https://www.patreon.com/posts/22735126
View nes_blocky.py
#!/usr/bin/env python3
# nes_blocky.py
# Brad Smith, 2018
# http://rainwarrior.ca
#
# Finds .NES ROM files in the current folder,
# and generates "blocky" pixellated versions of each,
# if the game does not use CHR-RAM.
View karnov_inspector.lua
-- Karnov Inspector lua script for FCEUX
-- rainwarrior 2018 #Karnovember
-- http://rainwarrior.ca
-- Press H for help
VERSION = "v1.0"
-- Modes and input handling to toggle them
@bbbradsmith
bbbradsmith / nsf2_strip.py
Created Aug 25, 2018
Utility to strip metadata from NSF2 files.
View nsf2_strip.py
#!/usr/bin/env python3
import sys
assert sys.version_info[0] >= 3, "Python 3 required."
#
# nsf2_strip.py
# Brad Smith, 2018-08-25
#
# This strips metadata from NSF2 files.
#
You can’t perform that action at this time.