title: What is the use of endless jump in bootsector programming
body: <p>I was reading a book on how to build an OS and I came throught this code, all the code does is print hello but I want to know more about the endless jump:</p>
  
  <pre><code>  mov ah,0x0e
    mov al,'H'
    int 0x10
    mov al,'e'
    int 0x10
    mov al,'l'
    int 0x10
    mov al,'l'
    int 0x10
    mov al,'o'
    int 0x10
  
    jmp $
  
    times 510-($-$$) db 0
    dw 0xaa55
  </code></pre>
  
  <p>I know that <strong>jmp $</strong> does.But I really want to why they have used and endless jump in the middle of code and what is the use of it???</p>