Skip to content

Instantly share code, notes, and snippets.

View lashtear's full-sized avatar

Emily Backes lashtear

View GitHub Profile
@lashtear
lashtear / keybase.md
Created February 13, 2019 02:24
keybase statement

Keybase proof

I hereby claim:

  • I am lashtear on github.
  • I am lashtear (https://keybase.io/lashtear) on keybase.
  • I have a public key ASAHm-qxXzsv2V4wCTdeog92pMn_M3VDDvGNfpOrXW1eoQo

To claim this, I am signing this object:

@lashtear
lashtear / hello.asm
Created August 26, 2020 00:49
hello world z80 nsadv
;; constants in the rom
romcout:equ 087fdh ; draw-character routine
romfont:equ 08561h ; built-in compressed 8x10 font
;; bootloader always jumps to loadaddr+10
bsent: equ 0c00ah
org 0c000h ; start at 0c000h
db 0c0h ; tell bootloader to load at 0c000h
ds bsent-$ ; skip to the 0c00ah entry point
@lashtear
lashtear / BTW.hs
Created April 25, 2023 00:54
a tiny (and slow) Burrows-Wheeler Transform in Haskell
module BWT where
import Data.List (sort)
ibwt :: String -> String
ibwt s =
let len = length s
cs = cycle s in
head $
head $
@lashtear
lashtear / detect-bare.fs
Created November 11, 2025 11:33
debugging mos-sim via old code
\ Adapted from http://forum.6502.org/viewtopic.php?f=2&t=2263
\ also cf. http://forum.6502.org/viewtopic.php?f=2&t=5931
include 816w2.fs
hex flush
: output-filename s" detect-sim.bin" ;
#-514 constant no-such-file
0fff5 constant SIM_CIN