;THANKS TO MY PROFESSOR FOR THE PROBLEM
.model tiny
.code
org 100h
begin: jmp start
msg1 db "REVERSE",0ah,"$"
msg2 db 8 dup(20h),"$";8 is the number of characters including the space
start proc
lea si,msg1[7];7 is the number of characters
lea di,msg2[0]
mov cx,8;8 is the number of characters including the space
prog: mov al,[si]
mov [di],al
dec si
inc di
dec cx
jnz prog
mov ah,09h
lea dx,msg1
int 21h
mov ah,09h
lea dx,msg2
int 21h
mov ah,07h
int 21h
mov ax,4c00h
int 21h
start endp
end begin