Google
 

Trailing-Edge - PDP-10 Archives - BB-X117B-SB_1986 - 10,7/tkb36/chain.req
There are 4 other files named chain.req in the archive. Click here to see a list.
!COPYRIGHT (c) DIGITAL EQUIPMENT CORPORATION 1980,1981,1982,1986. ALL RIGHTS RESERVED.
!
!
!THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED
!ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH LICENSE AND WITH THE
!INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR ANY  OTHER
!COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
!OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF THE  SOFTWARE  IS  HEREBY
!TRANSFERRED.
!
!THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT  NOTICE
!AND  SHOULD  NOT  BE  CONSTRUED  AS A COMMITMENT BY DIGITAL EQUIPMENT
!CORPORATION.
!
!DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY  OF  ITS
!SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.


!
! DEFINE THE STORAGE BLOCK USED TO DESCRIBE A CHAIN OF OTHER BLOCKS
!
!
! DEFINE MAX POINTERS ALLOWED BEFORE GOING TO ANOTHER BLOCK
!

LITERAL
    MAX_CHAIN_PTRS = 15;

!
SBLOCK (CHAIN, 2)				!CHAIN BLOCKS - USED TO LINK THINGS
HEADER (CHAIN)					!
ABLOCK (NUM_CHAIN_PTRS, %NBITSU (MAX_CHAIN_PTRS), 1)	!CURRENT NUMBER OF CHAIN POINTERS
ABLOCK (CHAIN_STYPE, %NBITSU (MAX_BLK_TYPE), 1)	!TYPE OF BLOCK POINTED TO
ABLOCK (CHAIN_BACK, %BPADDR, 1)			!POINTER TO ROOT BLOCK
ABLOCK (CHAIN_NEXT, %BPADDR, 1)			!NEXT CHAIN BLOCK, FOR MORE POINTERS
ABLOCK (CHAIN_PREV, %BPADDR, 1)			!PREVIOUS CHAIN BLOCK
ABLOCK (CHAIN_PTRS, %BPADDR*MAX_CHAIN_PTRS, 1)	!THE POINTERS THEMSELVES
EBLOCK (CHAIN)					!
!