The LazyBoy Library Manual - StrWordTable

Part of the Strings group.

%imacro StrWordTable 1-*
Prefers: nothing

Simple convenience macro for creating entries in a Word indexed string table.

%1 is the Word index. The last entry in the table must have an index of 0xFFFF. The keyword END can be used in place of 0xFFFF for readability. Although you can match the index of the last entry, it is also returned when no index match was found.

%2+ is the string for the for the specified index or default value. If no %2 is provided, the strings in the table will be NULL.

Example:

    StrWordTable    0, "Sunday"                  ; First day of the week.
    StrWordTable    6, "Saturday"                ; Saturday is more fun, I'll put it
    StrWordTable    5, "Friday", 32, "T.G.I.F."  ; before Friday. 
    StrWordTable  END, "Workday"                 ; any other day of the week

It would be no different than entering it manually like this:

    dw  0
    db  "Sunday", 0
    dw  6
    db  "Saturday", 0
    dw  5
    db  "Friday", 32, "T.G.I.F.", 0
    dw  65535
    db  "Workday", 0

See also: StrWordLookup, StrWordRLookup, StrFuncTable and StrByteTable.