title: How to make a new line and print the same characters in new line
body: <p>I'm trying to learn assembly. I saw this example in printing "Hello World!(red text) with a backgound color(yellow)"</p>
  
  <p>I managed to edit the code to just print spaces with yellow background by trial and error. However I cannot print a new line. if I add a new <code>mov [200], ' '</code> for example (dont know if this is correct) it adds a character on a different line but a different color.. if I add <code>00010001b</code> after the comma if prints a different color which should blue. </p>
  
  <p>can anyone give me a head start tutorial in this code. I just want to print another line for now.. Here is the working code so far.. it prints a whole line of yellow </p>
  
  <pre><code>name "hi-world"
  
  
  ; hex    bin        color ;  ; 0      0000      black ; 1      0001    blue ; 2      0010      green ; 3      0011      cyan ; 4      0100    red ; 5      0101      magenta ; 6      0110      brown ; 7      0111  light gray ; 8      1000      dark gray ; 9      1001      light blue ; a      1010      light green ; b      1011      light cyan ; c      1100      light red ; d      1101      light magenta ; e      1110     yellow ; f      1111      white
  
  
  
  org 100h
  
  ; set video mode     mov ax, 3     ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3) int 10h       ; do it!
  
  ; cancel blinking and enable all 16 colors: mov ax, 1003h mov bx, 0 int 10h
  
  
  ; set segment register: mov     ax, 0b800h mov     ds, ax
  
  ; print "hello world" ; first byte is ascii code, second byte is color code.
  
  mov [02h], ' '
  
  mov [04h], ' '
  
  mov [06h], ' '
  
  mov [08h], ' '
  
  mov [0ah], ' '
  
  mov [0ch], ' '
  
  mov [0eh], ' '   
  
  mov [10h], ' '
  
  mov [12h], ' '
  
  mov [14h], ' '
  
  mov [16h], ' '
  
  mov [18h], ' '
  
  mov [1ah], ' '
  
  mov [1ch], ' '
  
  mov [1eh], ' '   
  
  mov [20h], ' '
  
  
  ; color all characters: mov cx, 34  ; number of characters. mov di, 03h ; start from byte after 'h'
  
  c:  mov [di], 11101100b   ; light red(1100) on yellow(1110)
      add di, 2 ; skip over next ascii code in vga memory.
      loop c
  
  ; wait for any key press: mov ah, 0 int 16h
  
  ret
  </code></pre>