The LazyBoy Library Manual - StrByteTable

Part of the Strings group.

%imacro StrByteTable 1-*
Prefers: nothing

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

%1 is the byte index. The last entry in the table must have an index of 0xFF. The keyword END can be used in place of 0xFF 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:

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

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

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

See also: StrByteLookup and StrWordLookup.