Skip to content

Instantly share code, notes, and snippets.

.org $8000
.org $ff00
XAML = $24 ; Last "opened" location Low
XAMH = $25 ; Last "opened" location High
STL = $26 ; Store address Low
STH = $27 ; Store address High
L = $28 ; Hex value parsing Low
H = $29 ; Hex value parsing High
YSAV = $2A ; Used to see if hex value is given
@meighti
meighti / conv.py
Last active May 26, 2019 03:01
This gist converts legacy Base58 BitcoinCash addresses to new Bech32 format. It is a combination of codes written by Gavin Andresen and Pieter Wuille.
#!/usr/bin/env python2.7
import math
import sys
import hashlib
__b32chars = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"
__b58chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def b58encode(v):