
; Public Domain


	struc IDTABLE
idtString:	resw 1
idtMinimumSeq:	resw 1
idtMaximumSeq:	resw 1
	endstruc

%imacro idtableentry 1-*
 %rep %0
	istruc IDTABLE
at idtString,		dw %%message_%[NUMBER]
at idtMinimumSeq,	dw MINIMUMSEQUENTIAL
at idtMaximumSeq,	dw MAXIMUMSEQUENTIAL
  %ifstr %1
   %define %%string %1
  %else
   %defstr %%string %1
  %endif
  %xdefine IDSTRINGS IDSTRINGS, %%message_%[NUMBER]:, {counted %%string}
  %assign NUMBER NUMBER + 1
  %rotate 1
 %endrep
%endmacro

%assign NUMBER 0
%define IDSTRINGS db ""
%define MINIMUMSEQUENTIAL 0
%define MAXIMUMSEQUENTIAL 00FFh

%imacro dumpidstrings 1-*.nolist
 %rep %0
	%1
  %rotate 1
 %endrep
%endmacro

	even
idtable:
idtableentry sharer, command, format
idtableentry ansi, append, assign, attrib, backup, chkdsk, command, comp
idtableentry "debug", diskcomp, diskcopy, display, driver.sys, edlin, exe2bin, fastopen
idtableentry fdisk, filesys, find, graftabl, graphics, ifsfunc, join, keyb
idtableentry label, mem, mode, more, nlsfunc, print, printer, recover
idtableentry replace, restore, sort, subst, tree, vdisk, xcopy
.end:

idtmsg:
dumpidstrings IDSTRINGS
