138
K
A
DAK
AMX Circular List Manager
The same lists can be coded in assembly language as follows:
USER_DATA SEGMENT WORD 'DATA'
;
; Circular Lists must be in program data
;
NSLOT EQU 64
;EVEN ;Force word alignment
BYTELIST LABEL WORD
DW 4 DUP(?) ;Header
DB NSLOT DUP(?) ;Slots
;EVEN ;Force word alignment
WORDLIST LABEL WORD
DW 4 DUP(?) ;Header
DW NSLOT DUP(?) ;Slots
;EVEN ;Force word alignment
PNTRLIST LABEL WORD
DW 4 DUP(?) ;Header
DD NSLOT DUP(?) ;Slots
;
USER_DATA ENDS