title: how to iterate a string in assembly?
body: <p>my goal is to capitalize all of the word 'chain' but i have no idea how to move to the next letter i am still a beginner in this language i cant use loops so the number of characters is known for me</p>
  
  <p>this is my code: </p>
  
  <pre><code>include io.h
  data segment
    character db 'chain',0
    data ends
  code segment
    start :
    assume cs:code,ds:data
    mov ax,seg data
    mov ds,ax
    sub character,20h
    output character
    mov ax,4c00h
    int 21h
  data ends
  end start
  </code></pre>
  
  <p>this code only capitalizes the first character, i can repeat this if i know how to move to the second character so any help is appreciated, thank you.</p>