.uleb128 pseudo-op
Purpose
Assembles variable-length expressions.
Syntax
Item | Description |
---|---|
.uleb128 | Expression[, Expression, ...] |
Description
The .uleb128 pseudo-op assembles absolute expressions into consecutive bytes using the unsigned Little Endian Base 128 (LEB128) format. Each expression is treated as an unsigned, 64-bit expression that is converted to an unsigned LEB128 format, and then assembled into as many bytes as needed for the value.
No alignment occurs with the .uleb128 pseudo-op.
Parameters
Item | Description |
---|---|
Expression | An absolute expression. |
Examples
- The following example illustrates the use of the .uleb128 pseudo-op:
.uleb128 127 #Emits 0x7F .uleb128 128 #Emits 0x80, 0x01 .uleb128 0x8000000000000000 # Emits 0x80,0x80,0x80,0x80, # 0x80,0x80,0x80,0x80,0x00