hex.print_ptr_textΒΆ
Prints len[:w/4] bytes from the pointed buffer.
SignatureΒΆ
def print_ptr_text ptr, len @ loop, finish, pptr, cnt, bytebuf, end { ... }
Defined in hex/strings.fj β lines 33β50 (view on GitHub).
ComplexityΒΆ
Time:
len(w(@+5) + 21@+27)Space:
w(3@+55) + 16@+179
See the complexity glossary for what @, w, dw, dbit, n mean.
Requires initΒΆ
The following must be initialised before this macro is invoked:
hex.init and stl.ptr_init (or stl.startup_and_init_all).
SourceΒΆ
Click to view the macro body
def print_ptr_text ptr, len @ loop, finish, pptr, cnt, bytebuf, end {
.if0 w/4, len, end
.mov w/4, pptr, ptr
.mov w/4, cnt, len
loop:
.if0 w/4, cnt, finish
.read_byte_and_inc bytebuf, pptr
.print bytebuf
.dec w/4, cnt
;loop
finish:
;end
pptr: .vec w/4
cnt: .vec w/4
bytebuf: .vec 2
end:
}
Depends onΒΆ
β Previous: hex.input_ptr_line
Next: hex.print_ptr_line β