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) }