hex.write_byte (arity 2)ΒΆ
Effectively: *ptr = src[:2]
src is a hex[:2]. ptr is a hex[:w/4] that holds an address, which we assume is dw-aligned.
SignatureΒΆ
def write_byte ptr, src < hex.pointers.read_byte { ... }
Defined in hex/pointers/write_pointers.fj β lines 30β35 (view on GitHub).
ComplexityΒΆ
Time:
w(0.75@+5) + 17@+37Space:
w(0.75@+29) + 17@+200
See the complexity glossary for what @, w, dw, dbit, n mean.
SourceΒΆ
Click to view the macro body
def write_byte ptr, src < hex.pointers.read_byte {
.pointers.set_flip_and_jump_pointers ptr
.pointers.read_byte_from_inners_ptrs
.xor 2, hex.pointers.read_byte, src
.pointers.xor_byte_to_flip_ptr hex.pointers.read_byte
}
Depends onΒΆ
Used byΒΆ
Example usesΒΆ
hex.write_byte_and_incinhex/pointers/write_pointers.fjhex.write_nth_byteinhex/pointers/write_pointers.fjhex.push_byteinhex/pointers/stack.fj
β Previous: hex.zero_ptr
Next: hex.write_hex_and_inc β