Skip to content

Instantly share code, notes, and snippets.

View jmechnich's full-sized avatar

Jörg Mechnich jmechnich

View GitHub Profile
@jmechnich
jmechnich / BBCBasicToText.py
Created March 31, 2016 19:38
Converts BBC BASIC bytecode to text
#!/usr/bin/env python
#
# (c) 2007 Matt Godbolt.
# Use however you like, as long as you put credit where credit's due.
# Some information obtained from source code from RISC OS Open.
# v0.01 - first release. Doesn't deal with GOTO line numbers.
# source: http://xania.org/200711/BBCBasicToText.py
# 2016 jmechnich, prints and handles line numbers now, can use stdin and stdout
@jmechnich
jmechnich / cfs_blockdec.py
Created March 31, 2016 19:28
Decode Cassette Filing System, block layer
#!/usr/bin/env python
# Decode Cassette Filing System, block layer
from __future__ import print_function
import sys, struct
def crc16(data,crc=0):
for d in data: