org 100h jmp test ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Reverse a string under HL in place ;; strrev0: reverse a zero-terminated string ;; strrev: reverse a string terminated by the value in A ;; arrayrev: reverse bytes starting at DE and ending at HL ;; Destroys a, b, d, e, h, l registers. strrev0: xra a ; Zero A strrev: mov d,h ; Copy string begin to DE mov e,l dcx h strrev_end: inx h ; Find string end in HL cmp m jnz strrev_end dcx h ; Point HL to last character arrayrev: mov a,h ; If HL