hex.pointers.xor_byte_to_flip_ptr¶
xors (the byte hex[2:]) to the byte pointed by the memory-word hex.pointers.to_flip.
use after: .pointers.set_flip_pointer ptr
does: .xor *ptr, hex[:2] (as it uses the address in to_flip)
It assumes that the value in the memory-word to_flip is a dw-aligned address to an hex-variable.
Signature¶
def xor_byte_to_flip_ptr hex { ... }
Defined in hex/pointers/xor_to_pointer.fj — lines 106–108 (view on GitHub).
Complexity¶
Time:
10@+24Space:
10@+152
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def xor_byte_to_flip_ptr hex {
rep(2, i) .xor_hex_to_flip_ptr hex+i*dw, 4*i
}
Used by¶
Example uses¶
hex.xor_byte_to_ptrinhex/pointers/xor_to_pointer.fjhex.zero_ptrinhex/pointers/write_pointers.fjhex.write_byteinhex/pointers/write_pointers.fj
← Previous: hex.pointers.xor_hex_to_flip_ptr/1
Next: hex.pointers.xor_hex_to_flip_ptr/2 →