Skip to content

Instantly share code, notes, and snippets.

@shattered
shattered / v9k-raw2img.pl
Last active October 1, 2020 19:44
victor 9000 image converter
#!/usr/bin/perl
use warnings;
use strict;
use vars qw(@spt $RAW $IMG $buf);
@spt =
(
19, 19, 19, 19,
co = coroutine.create(function(scr)
local w = 0.25
local lf = 10
local cr = 13
function u(ch, t) emu.keypost(ch) emu.wait(t) end
function k(str, t) for c in str:gmatch"." do emu.keypost(c) emu.wait(t) end end
function d(t) emu.wait(t) end
@shattered
shattered / .clang-format
Created February 9, 2017 19:55
first cut of clang-format configuration for MAMEDEV (http://wiki.mamedev.org/index.php/MAME_Coding_Conventions)
AccessModifierOffset: -4
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackParameters: false
@shattered
shattered / gist:29ed8a6d5452883d8532cc9928bc7b5f
Created August 10, 2016 05:55
mame/mess build wrapper for 'git bisect run'
#!/bin/bash
#
# build MESS driver, or all of MESS, for 'git bisect run', accounting
# for changes in build process.
#
gmakealways="-j7 NOWERROR=1 USE_QTDEBUG=0"
driver=$1
@shattered
shattered / tstvm2.mac
Created June 28, 2016 19:29
Тест процессора КР1801ВМ2 для УКНЦ, Версия 0.3a, (c) dr.Titus 2012
;===================================================================================
;
; Тест процессора КР1801ВМ2 для УКНЦ
;
; Версия 0.3a
;
; (c) dr.Titus 2012
;
;===================================================================================
@shattered
shattered / gist:0da820cf7031c8a3ff93d663852da83e
Last active September 30, 2024 15:24
Index of AT&T 3B2, UNIX(R) System V and related documentation
:
: 3B2 & related docs
:
References only:
a The AT&T Documentation Guide, 1987 -- http://bitsavers.trailing-edge.com/pdf/att/000-111_ATT_Documentation_Guide_Nov87.pdf
A The AT&T Documentation Guide, 1993 -- https://books.google.com/books?id=lSppn9HCyisC
J Jeff's site -- http://ferretronix.com/tech/3b2/
@shattered
shattered / makefs1.diff
Created April 26, 2013 05:00
RT-11 filesystem support in NetBSD's makefs utility (WIP)
diff --exclude .git -ruN makefs/Makefile makefs1/Makefile
--- makefs/Makefile 2011-07-19 02:52:37.000000000 +0400
+++ makefs1/Makefile 2013-04-20 19:10:45.000000000 +0400
@@ -6,7 +6,7 @@
.include <bsd.own.mk>
PROG= makefs
-SRCS= cd9660.c ffs.c v7fs.c \
+SRCS= cd9660.c ffs.c rt11fs.c v7fs.c \
getid.c \
@shattered
shattered / gist:5281601
Created March 31, 2013 18:53
nbrelease.sh -- a wrapper around NetBSD's build.sh
#!/bin/sh -e
#
# objective: build an ISO image from checked-out (possibly modified) source.
#
if [ $# -lt 1 ]; then
echo "nbrelease.sh: Usage: <arch> <xsrc> <root>"
exit 1
fi