.offset

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

.offset [expression]
Parameter

expression

Optional initial location-counter value.

Remarks

The following table lists the only directives you can use inside a record.

Table 1. Directives Allowed in 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

The following listing shows a sample record definition.

Listing: Record Definition with Offset Directive
                .offset
top:             .short   0
left:            .short   0
bottom:          .short   0
right:           .short   0
rectSize         .equ     *