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