FIELD - define field inside structure.

Usage:

field  OFFSET,CODE_BLOCK

Where:

OFFSET
is the offset of the field within the structure. This should be a word offset, unless you use ".usage" to change the offset mode of the section.
CODE_BLOCK
is a code block that generates data to fill in the field.

Description:

"field" initializes a field of a structure. The structure should already have been allocated using the "struct" macro. An error message will be issued if you use "field" before using "struct".

Examples:

struct {
    char a[8];
    int i;
} SSS =
    { "abcdefg",10 }

could be duplicated with the YAA code

SSS:  struct  3,0
a:    field   0,{.data "abcdefg\0"}
i:    field   2,{.data 10}

Copyright © 1996, Thinkage Ltd.