//   AITest.d
//   Alto - 1822 Interface Test Program
//   L. Stewart  last modified:  August 29, 1983  4:37 PM
//   		added lnk field

//   This module contains manifests for the program

manifest
   [
   Null = #000000
   display = #420
   verticalInterval = #421
   ZoneSize = 3000          //Display stuff
   NLines = 7
   MapSize = (NLines*lDCB)+(16*38*(NLines+1))
   CtxSize = 900
   mred = #2000             //mouse buttons
   mblue = #1000
   myellow = #400
   typeEdit = 0              //packet types
   typeConstant = 1
   typeRandom = 2
   maxTypeCount = 3
   ]

structure IMPLeader : // 96-bit IMP-Host leader
   [
   Format word
   Control word
   =  [
      blank bit 4
      Trace bit
      Flags bit 3
      MType byte
      ]
   Handling byte
   Host byte
   Imp word
   Link word
   =  [
      lnk bit 8
      MsgID bit 4
      SubType bit 4
      ]
   Length word
   ]

manifest IMPLeaderlen = size IMPLeader/16

structure PRULeader : // 11 word Cap-4 leader
   [
   Lengths word
   =  [
      HopCount bit 4
      HdrLen bit 4
      PktLen byte
      ]
   Source word
   Destination word
   Numbers word
   =  [
      SeqNum bit 13
      SppNum bit 3
      ]
   Control word
   =  [
      Type bit 3
      ACK bit
      INV bit
      Type bit 3
      ART bit
      ARQ bit
      ARP bit
      ACT bit
      Hop bit 4
      ]
   Stats word
   Route↑1,8 word
   ]

manifest PRULeaderlen = size PRULeader/16
manifest PRUTOPControl = #0
manifest PRUNormControl = #064001