Skip to content

Instantly share code, notes, and snippets.

View tsutsui's full-sized avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / README.md
Last active December 7, 2025 03:31
p6psgmmlc — PC-6001 PSG音源ドライバ用 MMLコンパイラ README ドラフト

p6psgmmlc

PC-6001 PSG音源ドライバ用 MMLコンパイラ (C言語コマンドライン版)

  • 現在のバージョン: 0.1.0 (2025/12/07)
  • 更新履歴は 更新履歴 項を参照

これはなに?

よっしゅさん作の PC-6001用PSG音源ドライバ ver1.1c 向けの MMLソーステキストを、音源ドライバがそのまま演奏可能な

@tsutsui
tsutsui / remotediskd-function-specification.md
Last active December 3, 2025 23:50
CISC-NEWS NWS-1750 PROM のネットワークブート仕様に対応するサーバー側デーモンの関数実装レベルの設計書

remotediskd(8) 関数仕様(案)

0. 全体方針

  • 単一プロセス・単一スレッドのイベントループ型デーモン。

  • コマンドラインオプション → struct rdd_cliopt に詰める。

  • struct rdd_config は「現在有効な設定 + クライアント状態」をまとめて持つ。

  • シグナルハンドラは volatile sig_atomic_t フラグを立てるだけ。

    • 実際の設定リロード、終了処理はイベントループ側で行う。
@tsutsui
tsutsui / remotediskd-implementation-specification-draft.md
Created November 30, 2025 03:50
SONY NEWS、具体的には CISC-NEWS NWS-1750 の PROM のネットワークブート仕様に対応するサーバー側デーモンの設計書

remotediskd(8) 設計仕様書(最新版)

1. 概要

1.1 目的

remotediskd(8) は、Sony NEWS の PROM/ブートローダが利用する 「rd(remote disk)」プロトコル によるネットワークブートを提供するデーモンである。

  • NEWS 実機からの bo rd 等の操作に応答し、 指定されたディスクイメージファイルを「リモートディスク」として提供する。
@tsutsui
tsutsui / pmap_68k.c.diff
Created November 26, 2025 16:46
NetBSD/m68k 11.99.4 (20251126) new pmap patch for 040 (and nono 1.6.2)
Index: pmap_68k.c
===================================================================
RCS file: /cvsroot/src/sys/arch/m68k/m68k/pmap_68k.c,v
retrieving revision 1.29
diff -u -p -d -r1.29 pmap_68k.c
--- pmap_68k.c 24 Nov 2025 21:56:19 -0000 1.29
+++ pmap_68k.c 26 Nov 2025 16:44:43 -0000
@@ -1600,8 +1600,10 @@ pmap_pv_pte(struct pv_entry * const pv)
* the storage for the new PV entry.
*
@tsutsui
tsutsui / Xorg.0.log
Created November 11, 2025 14:33
KOF2025会場で NetBSD/luna68k 10.1 の X.orgサーバーがセグったときのログ
[ 1066.400]
X.Org X Server 1.21.1.14
X Protocol Version 11, Revision 0
[ 1066.850] Current Operating System: NetBSD lunatic 10.1 NetBSD 10.1 (LUNATIC) #4: Sun Jul 27 22:51:25 JST 2025 tsutsui@mirage:/s/netbsd-10/src/sys/arch/luna68k/compile/LUNATIC luna68k
[ 1066.900]
[ 1067.033] Current version of pixman: 0.38.4
[ 1067.150] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 1067.166] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
@tsutsui
tsutsui / Xsun.0.log
Created June 19, 2025 13:28
/var/log/Xsun.0.log on Sun 3/60 running NetBSD/sun3 10.1 and patched X.org'fied Xsun server
[ 41667.260] (II) Sun type 4 Keyboard, layout 0
[ 41670.410] (II) /dev/bwtwo0 is really a SUN2BW (bw2)
[ 41670.480] (II) Initializing extension Generic Event Extension
[ 41672.920] (II) Initializing extension SHAPE
[ 41675.590] (II) Initializing extension MIT-SHM
[ 41678.250] (II) Initializing extension XInputExtension
[ 41680.780] (II) Initializing extension XTEST
[ 41683.260] (II) Initializing extension BIG-REQUESTS
[ 41685.770] (II) Initializing extension SYNC
[ 41688.400] (II) Initializing extension XKEYBOARD
@tsutsui
tsutsui / sti-debug-comconsole.diff
Created May 30, 2025 16:59
debug NetBSD/hp300 sti(4) framebuffer console with com(4) console output
Index: arch/hp300/dev/com_dio.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hp300/dev/com_dio.c,v
retrieving revision 1.10
diff -u -p -d -r1.10 com_dio.c
--- arch/hp300/dev/com_dio.c 16 Jan 2024 05:48:28 -0000 1.10
+++ arch/hp300/dev/com_dio.c 30 May 2025 16:52:13 -0000
@@ -182,7 +182,7 @@ com_dio_cnattach(bus_space_tag_t bst, bu
bus_space_unmap(iot, iohdca, DCA_SIZE);
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#define BUFSIZE 1024
void (*bomb)(void);
static const unsigned char a[] = {
//0xf2, 0x43, 0xf4, 0x7a, // silent hard hang
@tsutsui
tsutsui / gist:60e8f10a0153d834393640cb52c9f521
Created February 15, 2025 03:51
alignment of SunOS 4.1.1 on sun3
on TME 0.8
@tsutsui
tsutsui / ninja-build-error-on-NetBSD-virt68k.log
Created January 20, 2025 16:23
pkgsrc-2024Q4 build failure on NetBSD/virt68k
===> Installing dependencies for liveimage-pkgs-m68k-20250119
==========================================================================
The following variables will affect the build process of this package,
liveimage-pkgs-m68k-20250119. Their current value is shown below:
* PYTHON_VERSION_DEFAULT = 312
Based on these variables, the following variables have been set:
* PYPACKAGE = python312