hex.ptr_dec¶
ptr[:w/4] -= 2w
Signature¶
def ptr_dec ptr { ... }
Defined in hex/pointers/pointer_arithmetics.fj — lines 17–19 (view on GitHub).
Complexity¶
Time:
9@+23Space:
w(0.375@ + 3.25) + 5@+67 (for log(w) in 16,32,64,128)
See the complexity glossary for what @, w, dw, dbit, n mean.
Requires init¶
The following must be initialised before this macro is invoked:
hex.sub.init (or hex.init)
Source¶
Click to view the macro body
def ptr_dec ptr {
hex.sub_constant w/4, ptr, dw
}
Depends on¶
Used by¶
Example uses¶
hex.sp_decinhex/pointers/stack.fj
← Previous: hex.ptr_inc
Next: hex.ptr_add →