hex.write_hex (arity 2)ΒΆ
Effectively: *ptr = src
src is a hex. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def write_hex ptr, src < hex.pointers.read_byte { ... }
Defined in hex/pointers/write_pointers.fj β lines 9β14 (view on GitHub).
ComplexityΒΆ
Time:
w(0.75@+5) + 11@+25Space:
w(0.75@+29) + 11@+112
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def write_hex ptr, src < hex.pointers.read_byte {
.pointers.set_flip_and_jump_pointers ptr
.pointers.read_byte_from_inners_ptrs
.xor hex.pointers.read_byte, src
.pointers.xor_hex_to_flip_ptr hex.pointers.read_byte
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.write_hex_and_incinhex/pointers/write_pointers.fjhex.write_nth_hexinhex/pointers/write_pointers.fjhex.push_hexinhex/pointers/stack.fj
Next: hex.zero_ptr β