Skip to content

Instantly share code, notes, and snippets.

View gareth8118's full-sized avatar

Gareth Edwards gareth8118

View GitHub Profile
; dasm05 -- Motorola 6805 Disassembler --
;-----------------------------------------------------------------
; Processing "FSMT_U14.bin" (2048 bytes)
; Disassembly start address: 0x1800
; String terminator: 0x00
start:
1800: CD 18 1D jsr initIOports ; main entry point to firmware
1803: CD 18 BD jsr init_data_stack_index
fFSMT_U15.bin
b1000
b1005
b1021
b1023
b1026
b1029
b102C
b1030
@gareth8118
gareth8118 / sub0000.asm
Last active July 2, 2018 21:49
Mystery 6805 assembler routine
sub0000:
1D57: B7 8A sta RAM_8A
1D59: BF 8B stx RAM_8B
1D5B: 3F 8C clr RAM_8C
1D5D: 3F 8D clr RAM_8D
1D5F: AE 08 ldx #$08
L0:
1D61: 34 8A lsr RAM_8A
1D63: 24 06 bcc L1
1D65: B6 8D lda RAM_8D
@gareth8118
gareth8118 / FSMT_U14.d05
Last active July 7, 2018 06:08
Listfile for FSMT reverse engineering
fFSMT_U14.bin
l0000 ioPortAdata
l0001 ioPortBdata
l0004 ioPortAddr
l0005 ioPortBddr
l0008 timerData
l0009 timerCtrl
# On-chip RAM
@gareth8118
gareth8118 / interleave.py
Created March 14, 2015 11:35
Creates files for interleaving from a series of even- or odd-page scan images
#!/usr/bin/env python
import shutil
import argparse
def interleave_pages(startindex, stopindex, startpage, srcpath, dstpath):
"""Remap a series of pages to interleaved destinations.
"""
if startindex < stopindex: