Contents|Index|Previous|Next

Uninitialized data

Use the .RES, .SRES, .SRESC, and .SRESZ directives to reserve memory and leave it uninitialized. GASP resolves these directives to appropriate calls of the GNU as .space directive.

.RES count
.RES.B count
.RES.W count
.RES.L count
Reserve room for count uninitialized elements of data. The suffix specifies the size of each element: .RES.B reserves count bytes, .RES.W reserves count pairs of bytes, and .RES.L reserves count quartets. .RES without a suffix is equivalent to .RES.L.

.SRES count
.SRES.B count
.SRES.W count
.SRES.L count
.SRES is a synonym for .RES.

.SRESC count
.SRESC.B count
.SRESC.W count
.SRESC.L count
Like .SRES, but reserves space for count+1 elements.

.SRESZ count
.SRESZ.B count
.SRESZ.W count
.SRESZ.L count
Like .SRES, but reserves space for count+1 elements.