I'm learning x86 assembly in school and have to make a program that prints a string one character at a time. Unfortunately, I can't figure out how to move the location of the next letter I need to print into DL. I've tried just incrementing DL in the loop but that just increments the ascii value of the first letter instead of moving it forward to the next letter. Here's what I have so far:
title prntstr.asm
.model small
.386
.data
greeting byte "Hello There! This is DOS.$"
greeting_len = ($-greeting)
.code
main PROC
mov ax,@data
mov ds,ax
mov ecx,greeting_len
start_loop:
mov dl,greeting
mov ah,6
int 21h
loop start_loop
mov ah,4ch
int 21h
main ENDP END main
Can anyone let me know what I have to add inside the loop to get DL to the next memory location?