hex.read_byte (arity 2)ΒΆ
Effectively: dst[:2] = *ptr
dst is a hex[:2]. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def read_byte dst, ptr { ... }
Defined in hex/pointers/read_pointers.fj β lines 18β21 (view on GitHub).
ComplexityΒΆ
Time:
w(0.75@+ 5) + 9@+13Space:
w(0.75@+29) + 9@+72
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def read_byte dst, ptr {
.zero 2, dst
.xor_byte_from_ptr dst, ptr
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.read_byte_and_incinhex/pointers/read_pointers.fjhex.read_nth_byteinhex/pointers/read_pointers.fjhex.pop_byteinhex/pointers/stack.fj
β Previous: hex.read_hex/2
Next: hex.read_hex_and_inc β