offset

Starts a record definition, which extends to the start of the next section.

.offset [expression]

Parameter

expression

Optional initial location-counter value.

Remarks

Directives within a Record lists the only directives your can use inside a record.

Table 1. Directives within a Record
.align .double .org .textequ
.ascii .equ .set
.asciz .float .short
.byte .long .space

Data declaration directives such as .byte and .short update the location counter, but do not allocate any storage.

Example

Record Definition with Offset Directive shows a sample record definition.

Figure 1. Record Definition with Offset Directive
           .offset
top:       .short   0

left:      .short   0

bottom:    .short   0

right:     .short   0

rectSize   .equ     *