jr nz, prnl
;; OK, so just print the value.
- ld a, (len)
- ld b, 0
- ld c, a
ld hl, buf - 1
+ ld bc, (len)
add hl, bc
ld b, c
;; Initial state. The buffer notionally continues for another 254
;; bytes, but there's no point in including them in the image.
-len: db 1
+len: db 1, 0
buf: db 1