From 405b4587026e8904b588f43adaa718856ca25c88 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 12 Oct 2025 13:37:50 -0400 Subject: [PATCH] tape: Comment chart for reading tags from hexdumps --- tape/tag.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tape/tag.go b/tape/tag.go index f4001f2..103f01b 100644 --- a/tape/tag.go +++ b/tape/tag.go @@ -18,6 +18,17 @@ type Tag byte; const ( CNLimit Tag = 32 // All valid CNs are < CNLimit ) +// what the first nybble of a tag means: +// +// 0-1 : SI +// 2-3 : LI +// 4-5 : LSI +// 6-7 : FP +// 8-9 : SBA +// A-B : LBA +// C-D : OTA +// E-F : KTV + func (tag Tag) TN() int { return int(tag >> 5) }